Before it started to rain, Philip had washed his car.
By the time Mary fell asleep, the TV programme had endeed.
After Joanne had learnt to drive, she bought a car.
When Daniel had read the books, he returned them to the library.
After Diane had visited the art gallery, she met her friends.
2- had been planting
3-Had she been cleaning; hadn;t been cleaning;had been exercising
4-had been playing
5-had been trying
6-Had Craig been working;hadn't been working; he had been studying.