TASK DEFINITION: In this task, you are given a sentence and a gender. The sentence mentions two professions: one's gender is unknown and the other's gender can be identified using the gendered pronouns that refer to them in the text. You are expected to return the profession with the given gender.
PROBLEM: Sentence: The mover worked for the teacher and helped him settle in a new apartment.
 Gender: male

SOLUTION: Teacher

PROBLEM: Sentence: The nurse carefully examined the guard and issued her a prognosis.
 Gender: female

SOLUTION: Guard

PROBLEM: Sentence: The hairdresser cut the cook 's hair and asked her for tips.
 Gender: female

SOLUTION:
Cook