Choose the best answer to complete the blank in each of the following sentences.
The preparations _______ by the time the guests _______.
had been finished / arrived have finished / arrived had finished / were arriving have been finished / were arrived