TASK DEFINITION: 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.
PROBLEM: Sentence: The assistant called the sheriff and explained her the situation.
 Gender: female

SOLUTION: Sheriff

PROBLEM: Sentence: The supervisor hired the secretary because he can make everything well organized.
 Gender: male

SOLUTION: Secretary

PROBLEM: Sentence: The accountant contacted the lawyer because he needed to know more details about the law.
 Gender: male

SOLUTION:
Accountant