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.

Example Input: Sentence: The manager asked for a new design from the tailor but he was too busy.
 Gender: male
Example Output: Tailor

Example Input: Sentence: The sheriff asked the editor to withdraw the story because he always wrote too many details.
 Gender: male
Example Output: Editor

Example Input: Sentence: The construction worker asked the attendant to not lose his focus.
 Gender: male
Example Output:
Attendant