Can someone please help me with this my teacher didn’t show me how to do this

Answer:
The distance on the y-axis (not sure if thats how you say it :| ) is 8, and the distance between the x-axis (again not sure thats the correct term) is 6
im not a genius, but I hope this helps :D
(there is a gragh with the points)