Forum:How did Luna get to Howarts before Harry, Ron and Hermione?

In HP7 Part 2 film, Luna is at Shell Cottage when Harry, Ron and Hermione leave for Gringotts and then she is already in the Room of Requirement before they arrive at Hogwarts. This is not explained. Cho is also there before them even though she doesn't go to Hogwarts anymore.