Imperfect progressive subjunctive
The Imperfect subjunctive has a progressive form to express an ongoing action generally in hypothetical situations in the past:
Dudo que los chicos estuvieran estudiando en la biblioteca.
I doubt the boys were studying at the library.