6. By 5 o'clock he had done his homework and could go to play football with the boys.
Ответ: had done