Context Word: research. 
Question: PersonX spent long hours at the library doing research and studying, while PersonY goofed off and went out drinking. _ earned better grades on the final test. 
Answer: PersonX
PersonX spent long hours at the library doing research and studying, while PersonY goofed off and went out drinking. _ scrapped a passing grade on the final test.