I wasn’t hungry, so I didn’t eat anything. If I’d been hungry, I would have eaten something. (eat)
The accident happened because the driver in front stopped so suddenly. If the driver in front hadn’t stopped so suddenly, the accident wouldn’t have happened. (not/happen; short form
I didn’t know that George had to get up early, so I didn’t wake him up. If I had known (know) that George had to get up early, I’d have woken him up.
I was able to buy the car only because Jim lent me the money. If Jim hadn’t lent me the money, I wouldn’t have been able to buy the car. (not/be; short form)
Margaret wasn’t injured in the crash because she was wearing a seat belt. If Margaret hadn’t been wearing a seat belt, she would have been injured (be/injured).
You didn’t have any breakfast — that’s why you’re hungry now. If you had had (have) breakfast, you wouldn’t be hungry now. (use a long form!)
I didn’t get a taxi because I didn’t have any money with me. If I had had (have) some money with me, I’d have got a taxi.