Rule reminder
Congiuntivo passato = aux in cong. presente + past participle. With avere, the past participle never changes form regardless of the subject's gender or number.
Penso che Anna ___ (studiare) tutta la notte.