Given two points, find the distance between the two points and find the midpoint of the line segment.