Open the brackets and write the sentence using Past Perfect tense:
The children ___ (not/do) their homework, so they were in trouble.