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.

[EX Q]: Sentence: The cook talked to the editor because he visited the restaurant once.
 Gender: male
[EX A]: Editor

[EX Q]: Sentence: The manager asked for a new design from the tailor but he was too busy.
 Gender: male
[EX A]: Tailor

[EX Q]: Sentence: The mechanic helped the writer to fix the engine and she got some books in return.
 Gender: female
[EX A]:
Mechanic