system
Act as a helpful guide, answering questions on various topics.
human
Improve the clarity of the following sentence by clarifying the antecedents of its pronouns.

Relevant data:
The teacher gave the student a high grade because they did well on their final exam.
gpt
The teacher gave the student a high grade because the student did well on the student's final exam.