2. If he hadn't had a terrible headache, he would have finished his homework.
3. If it hadn't rained hard, they would have gone out.
4. If they had played well, they wouldn't have lost the match.
5. If they hadn't worked hard, they wouldn't have managed to finish their project on time.