What is the distance between the points (0,0) and (5,12)?
Hypotenuse, which is 13 units.
If your starting point is origin and your dinal x is 5 and your final y is 12, you can compute the distance by
Your m will be
This is the distance. 13 units.
This is why the solution provided by G_Ozdilec works
The distance between the two points is 13 units
Basically you use the Pythagoras solution for a right tringle.
It is good practice to state the units of measurement. However none are given. So if you wish to declare something just use the word 'units'