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 salesperson demanded money from the cashier because he likes to give orders.
 Gender: male
Example Output: Salesperson

Example Input: Sentence: The mover said thank you to the housekeeper because she cleaned the truck.
 Gender: female
Example Output: Housekeeper

Example Input: Sentence: The driver was embarrassed by the librarian 's silly hat and never drove her anywhere.
 Gender: female
Example Output:
Librarian