Which one is a correct sentence?

Answer: 
They had arrived before we left.
Which one is a correct sentence?