Find the distance between the points and the midpoint of the line segment joining them (p,0) (q,0)

ougt