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


[Q]: Sentence: The editor forgot the salesperson 's name because she meets so many people every day.
 Gender: female
[A]: Editor


[Q]: Sentence: The mechanic helped the writer to fix the engine and she offered some books to show thanks.
 Gender: female
[A]:
Writer