Answer:
A. Writer
Step-by-step explanation:
From the third clue, we know that Pamela is the dentist.
Combined with the first clue, that means Alice is the lawyer, and combined with the second clue, that means Robert is the teacher.
Therefore, Bart is the writer.