Respuesta :

This sentence should be written using this tense:
By the time the movie was over, we had left the theater.
You need to use past perfect tense in these kinds of constructions.