Задание

They ....... for the exam when the lights .......off.

were studying; went

had been studying; went

studied; had gone