Ответ:

7. When Monica had finished her homework, she went out to play with her friends.

Ответ: had finished; went