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 baker yelled at the mover because his stove was broken.
 Gender: male
Example Output: Baker

Example Input: Sentence: The carpenter likes to work with the designer because he always makes great designs.
 Gender: male
Example Output: Designer

Example Input: Sentence: The developer asked the clerk to prepare the paperwork because she did not know how the system works.
 Gender: female
Example Output:
Developer