Ответ:

The girl had done her homework before she went to the park.