1. You were (Past Simple) out of breath when you came (Past Simple) in this morning. Had you been running (Past Perfect Continuous)?
2. When Mother got (Past Simple) home she found (Past Simple) that little Kitty had been painting (Past Perfect Continuous) her room. She had painted (Past Perfect) two walls red and one wall yellow.
3. It had been raining (Past Perfect Continuous) for several days before the wind changed (Past Simple).
4. Jane told (Past Simple) me she had been writing (Past Perfect Continuous) regularly to her Granny, but hadn't received (Past Perfect) any answer.
5. We had been cooking (Past Perfect Continuous) all day for the party that evening but by eight o'clock in the evening Jane hadn't finished (Past Perfect) laying the table yet.