For the point P (-12,22) and Q (-7, 27)​, find the distance​ d(P,Q) and the coordinates of the midpoint M of the segment PQ. What is the distance?