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 mechanic received a gift from the baker because she helped with repairing the oven.
 Gender: female

SOLUTION: Mechanic

PROBLEM: Sentence: The driver recognized the receptionist and introduced the boss to him.
 Gender: male

SOLUTION: Receptionist

PROBLEM: Sentence: The cleaner contacted the carpenter and asked her to fix a wood cabinet.
 Gender: female

SOLUTION:
Carpenter