whats the distance formula?
Try the pythagorean theorem.
sqrt{(x2-x1)2+(y2-y1)2
For example, you have the coordinates of (5, 4) and (-3, 8)
sqrt{(4-8)2+(5-(-3))2
sqrt{-42+82
sqrt{16+64
sqrt{80
4sqrt{5