Ex1:
1. Had worked - wouldn't have failed
2. Would help - had
3. Had had - would have travelled
4. Hadn't been - would have passed
5. Weren't - would go
6. Would you have done - had had
7. Were - would be
8. Would have been - had been
9. Hadn't been - would have done
10. Hadn't stayed - wouldn't have been
Ex2:
1. If he hadn't been sick yesterday, he would have gone to school.
2. If the answer weren't easy, everyone couldn't answer it.
3. If it hadn't rained, we would have gone to the concert last night.
4. If that mototbike hadn't been expensive, we would have bought it.
5. If I could speak English, I would get that job.