BEFORE SHE WENT TO SCHOOL, SHE HAD DONE HOMEWORK

2. Before she went to school, she had done homework.