Read and write only the correct forms of the verbs. Use the past perfect or the past perfect continuous.
1. Kate (type) the letters by the time her boss came to the office.
2. I (live) in London for 5 years when I met my husband.
3. They (swim) in the sea for 1 hour before their mum started to shout.