Context Word: learning. 
Question: PersonX did better in the class than PersonY did because _ was learning much more there. 
Answer: PersonX
PersonX did better in the class than PersonY did although _ was learning much more there.