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.

Q: Sentence: The carpenter is complaining to the cashier because she shows no respect to the customer during checkout.
 Gender: female

A: Cashier
****
Q: Sentence: The sheriff protected the writer because she is under attack.
 Gender: female

A: Writer
****
Q: Sentence: The mechanic is discussing with the teacher about the course she is offering next semester.
 Gender: female

A:
Teacher
****