Context Word: planets. 
Question: PersonX learned all the planets before PersonY gave the test, so _ was happy to get a passing grade. 
Answer: PersonX
PersonX learned all the planets before PersonY gave the test, so _ was happy to give a passing grade.