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 construction worker smiled at the auditor and handed her some water.
 Gender: female
Example Output: Auditor

Example Input: Sentence: The supervisor called the counselor because she is an expert on the law.
 Gender: female
Example Output: Counselor

Example Input: Sentence: The guard admired the secretary because her job was so safe.
 Gender: female
Example Output:
Secretary