Grammatically, option a) is the correct one. This is a second conditional sentence: ‘If + [Past Simple], + would + [bare infinitive]’ or (as in this case) ‘Would + [bare infinitive] + if + [Past Simple]’ .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.