how to find the distance between x and y?
Use the formula D2 = X2 + Y2 to find the squared distance between two points. For example, if X = 4 and Y = 5, then D2 = 42 + 52 = 41. Thus, the square of the distance between the coordinates is 41. Take the square root of D2 to find D, the actual distance between the two points.