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 farmer needed to take a test from the counselor to prove she was sane.
 Gender: female

SOLUTION: Farmer

PROBLEM: Sentence: The editor stopped the janitor and showed her newspapers every day.
 Gender: female

SOLUTION: Janitor

PROBLEM: Sentence: The auditor was baffled at the carpenter 's lack of organization and warned her that the audit would not end well.
 Gender: female

SOLUTION:
Carpenter