Pronouns either replace or refer back to a noun. Accordingly, they must agree in number with the noun to which they refer or are replacing.
For more information, please refer to The OWL at Purdue: Using Pronouns Clearly.
Be consistent with the point-of-view that you use in your writing and the pronouns you use to indicate your point-of-view.
There are three possible points-of-view:
Don't switch your point-of-view mid-sentence. For example, "If a student hands in a late assignment, you will have marks deducted" (mixes the third-person "student" with the first-person "you"). The correct version is either, "If a student hands in a late assignment, the teacher will deduct marks from their grade", or "If you hand in a late assignment, the teacher will deduct marks from your grade".