Rule reminder
English 'I thought/hoped he had...' = past/conditional trigger + congiuntivo trapassato.
I thought he had already studied for the exam.