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 writer contacted the CEO and asked for her opinions about the book.
 Gender: female
Example Output: Ceo

Example Input: Sentence: The writer chatted with the analyst and expressed interest in her work.
 Gender: female
Example Output: Analyst

Example Input: Sentence: The laborer handed the assistant a hammer because she was tired of working.
 Gender: female
Example Output:
Laborer