Choose the correct form of the verbs in brackets.
Wendy ___ (cook) dinner for over two hours before the guests arrived.
had been cooking
had cooked
was cooking