7. The teacher was explaining a difficult maths problem when the fire alarm rang.
Пояснение: was explaining - Past Continuous, rang - Past Simple.
Ответ: was explaining, rang