you use a modification of the pythagorean theorem to find
pythagoreas c^2=a^2+b^2
the easy way is you use the equation [tex]d= \sqrt{(x1-x2)^2+(y1-y2)^2} [/tex]
so input in format (x,y) then
(2,2)
(7,5)
x1=2
y1=2
x2=7
y2=5
[tex]d= \sqrt{(2-7)^2+(2-5)^2} [/tex]
[tex]d= \sqrt{(-4)^2+(-3)^2} [/tex]
[tex]d= \sqrt{16+9} [/tex]
[tex]d= \sqrt{25} [/tex]
[tex]d= 5 [/tex]
the distance is 5 units