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.
--------
Question: Sentence: The mechanic waved at the librarian and walked away from her.
 Gender: female

Answer: Librarian


Question: Sentence: The CEO was thankful to the auditor and trusted her good judgment.
 Gender: female

Answer: Auditor


Question: Sentence: The housekeeper troubles the physician a lot because he knows about medicine.
 Gender: male

Answer:
Physician