Odpowiedź:
1 By the time we arrived at the harbour the boat had already left.
2 She had just gone to sleep when her brother came round to see her.
3 Pam and Tom didn't go to the concert before they had finished their work.
4 Lucy called for a taxi after she had packed her suitcase.