estuvieron quedando
Preterite progressive ellos/ellas/ustedes conjugation of quedar.

quedar

Nos habíamos hecho amigos cercanos durante el tiempo que se estuvieron quedando en nuestras celdas.
We had become close friends during the time they were staying in our cells.
Word of the Day
flea market