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 auditor smiled at the construction worker and handed him some water.
 Gender: male
Example Output: Construction worker

Example Input: Sentence: The manager talked to the tailor and then asked her to create a new design.
 Gender: female
Example Output: Tailor

Example Input: Sentence: The assistant called the sheriff and explained him the situation.
 Gender: male
Example Output:
Sheriff