Задание

They had been driving for quite a while before they stopped __________ \(have\) some coffee.