The boys had been playing before the teacher came. Choose the form of tense: