Odpowiedź:
1 When we had finished writing the exam, the teacher collected our papers.
2 After we had bought a house, we renovated it.
3 Before Pete rented a small flat, he had lived with his family for a while.
4 By the time my German improved greatly, I had finished the course in June.
5 Martha had got her first job before she graduated from university.
6 He couldn't focus on the lessons after he hadn't slept at all last night.
7 By the time he joined our chemistry club, he had won three chemistry competitions.