how to solve for distance between two points problem how to solve for distance between two points problem