1. Susan had been studying Spanish for 3 years before she started to learn English.
2. He had been running until he was out of breath.
3. They had been watching TV for two hours before Mike came.
4. Diana had been playing tennis for half an hour when it began to rain.
5. I had been writing letters before lunch.
6. At 10 o'clock Kate had been playing the piano for two hour. (She began at 8 o'clock and at 10 o'clock she was still playing.)