The general formula for the distance between two points (x,y) and (u,v) is . In your case it becomes = = = 16.