Rule reminder
Trapassato prossimo with si passivante: si + era/erano + past participle (with gender/number agreement). Example: si erano già venduti tutti i biglietti (all the tickets had already been sold).
Quando siamo arrivati, ___ già tutti i biglietti.