1. My head hurt because I *had been listening* to music for three hours. 2. I knew the names of the robbers because I *had been listening* to the news on TV. 3. They *had been building* a new school for six months when there was an earthquake. 4. They *had built* a new block of flats by December. 5. By the time the sun went down the couple *had been flying* over the Pacific Ocean for five hours. 6. By the time the sun went down the couple *had flown* more than 500 km over the Pacific Ocean.