My teacher wants me to write this in algebraic (x,y)-> rule.
How do I do this? (Explain)

Answer:
(x,y) → (x-2,y-1)
Step-by-step explanation:
You are explaining how the x and y are moving. All the points move the same distance in the same direction. Let's look at point Z, how does it move to get to point Z'? It moves 2 to the right (that is the x movement) and one down (that is the y movement).
To to the right would be moving in the negative direction and 1 down would also be moving in the negative direction.
Step-by-step explanation:
the other answer had the right thought, but they mixed up something about positive and negative.
as x increases from left to right, and y from the bottom up, moving to the right means increasing x.
to use the same example : point Z
the x coordinate of Z is 1.
the x coordinate of Z' is 3.
the y coordinate of Z is 5.
the y coordinate of Z' is 4.
so, what happened ?
x increases by 2, y decreases by 1.
(x, y) -> (x+2, y-1)