Context Word: students. 
Question: PersonX encouraged the students to visit PersonY if they had a problem; _ was a teacher. 
Answer: PersonX
PersonX encouraged the students to visit PersonY if they had a problem; _ was a psychologist.