Context Word: photosynthesis. 
Question: PersonX gave an explanation of photosynthesis to PersonY, so _ could teach how plants produce energy. 
Answer: PersonX
PersonX gave an explanation of photosynthesis to PersonY, so _ could learn how plants produce energy.