Задание

They _______ for three hours before they found a nice hotel to have a rest.

had been driving

drove

were driving

had driven