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 chief asked the editor to redo the documents because he made significant errors.
 Gender: male

SOLUTION: Editor

PROBLEM: Sentence: The sheriff gave the secretary no more chances and arrested him.
 Gender: male

SOLUTION: Secretary

PROBLEM: Sentence: The guard admired the secretary and wanted his job.
 Gender: male

SOLUTION:
Secretary