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 mover moved the desk for the cleaner because she is weak.
 Gender: female
Example Output: Cleaner

Example Input: Sentence: The designer contacted the chief and asked him for requirements for the new logo.
 Gender: male
Example Output: Chief

Example Input: Sentence: The editor called the construction worker and asked him what happened.
 Gender: male
Example Output:
Construction worker