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 physician contacted the editor because he could provide help publishing in a medical journal.
 Gender: male
Example Output: Editor

Example Input: Sentence: The sheriff relies on the attendant because he is trustworthy.
 Gender: male
Example Output: Attendant

Example Input: Sentence: The mover rebuked the auditor because he had clearly made a mistake.
 Gender: male
Example Output:
Auditor