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.

[Q]: Sentence: The accountant never bought anything from the salesperson and hated all his offerings.
 Gender: male
[A]: Salesperson


[Q]: Sentence: The analyst visited the writer because he wanted to know about the book.
 Gender: male
[A]: Analyst


[Q]: Sentence: The salesperson talked to the teacher and invited her to dinner.
 Gender: female
[A]:
Teacher