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 sheriff asked the editor to withdraw the story because he always wrote too many details.
 Gender: male
[A]: Editor


[Q]: Sentence: The cook asked the designer if he likes the new dish.
 Gender: male
[A]: Designer


[Q]: Sentence: The salesperson sold some books to the librarian because he wanted to learn.
 Gender: male
[A]:
Librarian