In conditional sentence formation as given in the question, there are two clauses; there is a negative or positive consequence followed by an action. Since the main clause has the form : “would + have + past participle”, as per the grammar rule, the if clause should have Past Perfect tense form in the given question. e.g.
1. If you hadn’t studied, you would have failed in the exam.
2. If she had taken up a French language course, it would have helped her obtain Canadian Permanent Residency.