If നു ശേഷം had + v3 വന്നാൽ, If നു മുൻപോ ശേഷമോ വരുന്ന comma ക്കു മുന്നിൽ would/should/could/might + have + v3 ഉപയോഗിക്കണം . ഇവിടെ if + sub + had + had (v3) വന്നത്കൊണ്ട് comma ക്കു മുന്നിൽ would have + v3 ഉപയോഗിക്കണം .
This is a third conditional (imaginary past situation).
Structure: If + past perfect → would have + past participle
So: If he had had enough money → he would not have failed.
The full correct sentence is:
👉 He would not have failed if he had had enough money.