Put in the Past Perfect Simple, Past Perfect Continuous

1. When the head teacher turned up, the students (fight) for about 10 minutes.
2. After the janitor (lock) the gate, he brought the dangerous dogs too.
3. I (not/dream) about having a car until I got a rise.
4. Before he talked to the psychologist, his feelings (be) blocked.
5. When Tommy came up, the girls (sing) for a long time.
6. When they received the message, they (study) for half an hour.
7. After he (hear) the news, they burst into laughter.
8. The footballer (not/start) the game until he was told to by the coach.
9. When the con-stable rushed into the street, the thieves (already/vanish) into the thin air.
10. Before the knight joined the army, he (practice) fighting with a sword for some time.
11. After the teacher (hand) out tests, the students started to write.
12. I (not/be) at in home before my mother came.