Choose the correct option.
He (stay) at the hotel for a fortnight when he received your letter.
stayed
had stayed
had been staying
was staying