Choose the correct form of the verb.
They went to the museum after they _____ their homework.
had finished
finished
had been finishing
was finishing