The distance between (3,1) and (0,5) is 5.
The x component is (0-3) = -3 and the y-component is (5-1)=4 so the distance is the square root of (-3)^2+4^2 = 25