Well, if you had studied harder, you would not have failed.
Объяснение:
Это третье условие (Third Conditional), так как речь идет о сожалении о прошлом. В первой части (if-clause) используется Past Perfect (had studied), во второй — 'would have' + Past Participle (would not have failed).