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 receptionist did a good job for the farmer and earned her trust.
 Gender: female

SOLUTION: Farmer

PROBLEM: Sentence: The cleaner hates the developer because he spent a lot of time cleaning the room.
 Gender: male

SOLUTION: Cleaner

PROBLEM: Sentence: The chief visited the tailor because he wanted to learn to hem.
 Gender: male

SOLUTION:
Tailor