d) They finished having lunch at three.
После глагола finish употребляется герундий (V+ing).
Ответ: having