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.
--------
Question: Sentence: The janitor stopped the editor and showed her how to clean the floor.
 Gender: female

Answer: Editor


Question: Sentence: The supervisor asked the assistant to get his schedule for tomorrow.
 Gender: male

Answer: Supervisor


Question: Sentence: The attendant served water to the sheriff and then handed him a menu.
 Gender: male

Answer:
Sheriff