Which of the following sentences is written in the conditional past real mood and tense? 
 A)When I had homework, I would study at the library. 
 B)When I had homework, I studied at the library. 
 C)If I had homework, I would have studied at the library. 
 D)If I had homework, I would have studied at the library.