Context Word: gain weight. 
Question: PersonX was trying to gain weight and PersonY was trying to lose weight so _ ate pizza for dinner. 
Answer: PersonX
PersonX was trying to gain weight and PersonY was trying to lose weight so _ ate salad for dinner.