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 mechanic not only explained several terms to the counselor but also wrote some down for her.
 Gender: female
[EX A]: Counselor

[EX Q]: Sentence: The mechanic talked with the counselor for such a long time because he knew little about the legal affairs.
 Gender: male
[EX A]: Mechanic

[EX Q]: Sentence: The carpenter made a wood lion for the accountant because he is generous.
 Gender: male
[EX A]:
Carpenter