Answer:
if he had gone to the dentist earlier, he wouldn't have had to get his teeth pulled.
if you had eaten your meals, you wouldn't hungry right now.
If I had been richer, I would have bought myself a mansion.
If you had been compassionate, maybe she wouldn't be hurting right now.
If I had known earlier, I would have broken up with you .
I don't see any thing wrong with the sentences