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 offered the receptionist a hand and moved his desk.
 Gender: male
Example Output: Receptionist

Example Input: Sentence: The attendant served the analyst and made her feel welcomed.
 Gender: female
Example Output: Analyst

Example Input: Sentence: The analyst visited the writer because he made some mistakes in the book.
 Gender: male
Example Output:
Writer