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 auditor was baffled at the carpenter 's lack of organization and warned him that the audit would not end well.
 Gender: male

SOLUTION: Carpenter

PROBLEM: Sentence: The CEO could not understand the attendant and asked her the question again.
 Gender: female

SOLUTION: Attendant

PROBLEM: Sentence: The farmer saw the baker had a lot of bread and asked her to share.
 Gender: female

SOLUTION:
Baker