Complete the sentences with the correct forms of the verbs in the brackets. Use the past perfect continuous.
1. When Lorraine moved to England, she (learn) English for 12 years.
2. When the musician became the director of the opera house, he (live) in this town for ten years.
3. We (go) out together for two years before I met his family.
4. Around six o´clock he (take) the dog for a walk.