Ответ:

  1. Yuri had been working on his computer for two hours before it broke down.
  2. I was mopping the floor while my brother was cutting the grass.
  3. Were you sleeping when the earthquake happened?
  4. This time last week, I was flying to Paris.
  5. Sam was really happy because he had passed all his exams.
  6. Saran had cleaned the house by the time her parents came back.
  7. James waited for a while and then opened the door to see who was making that strange noise.
  8. Marion didn’t go shopping because she was spending the morning with her little brother that day.

Ответ: 1) had been working, broke down; 2) was mopping; 3) Were you sleeping, happened; 4) was flying; 5) had passed; 6) had cleaned, came; 7) waited, opened, was making; 8) didn’t go, was spending.