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.

Sentence: The guard met with the writer and asked him for an autograph.
Gender: male
Writer

Sentence: The chief decided the clerk was bad at the job he failed to produce the correct records.
Gender: male
Clerk

Sentence: The librarian wore silly hats in front of the driver and refused her requests to change.
Gender: female
Driver