1. If John hadn't overslept, he wouldn't have been late for work. If he hadn't been late for work, his boss wouldn't have fired him. If John hadn't lost his job, he wouldn't have needed money and he wouldn't have robbed the bank. If he hadn't robbed the bank, the police wouldn't have arrested him.
2. If i hadn't missed the bus, i wouldn't have been late for work.
If she hadn't felt ill this morning, she would have gone to school.
If the food hadn't been awful, we would have eaten it.
If he had passed his exams, he would have gone to the university.
If the salary had been good, I would have accepted the job.
If it hadn't been my birthday, Chris wouldn't have given me flowers.