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 CEO asked the clerk to produce a report to justify his behavior.
 Gender: male
Example Output: Clerk

Example Input: Sentence: The carpenter told the baker she does not want cheese in the bread.
 Gender: female
Example Output: Carpenter

Example Input: Sentence: The construction worker handed forms to the clerk so that she can start a new development project.
 Gender: female
Example Output:
Construction worker