Could you please help me to understand which option is correct and why?

He would better try harder, wouldn't he?
or
He had better try harder, hadn't he?


Q32 -
He'd better try harder, .......?

wouldn't he
hadn't he