Context Word: equation. 
Question: While in school, PersonX was teaching PersonY about geometry because _ knew all about the complex equations. 
Answer: PersonX
While in school, PersonX was teaching PersonY about geometry because _ needed to learn about the complex equations.