The sentence is a past conditional with a possibility. This type of conditional takes the structure “Had+sub+v3………….sub+ could/would/might + v3”. In the first part, we need to make changes by replacing ‘if I was knowing’ with ‘had I known’. Thus, option (a) is correct.