Ответ:

They had had dinner by the time I arrived.

Ответ: б) by the time. Перевод: «К тому времени, как я приехал(а), они уже поужинали».