The vertices of triangle are given as,
Also given that M is the midpoint of side AB,
The corresponding diagram is given below,
Consider that the coordinates of the midpoint of a line segment is the average of the coordinates of the endpoints.
So the coordinates of point M (x,y) will be,
It is found that the coordinates of point M are (4,-3).
Consider the distance formula to obtain the distance between two points,
The distance between A (7,1) and M (4,-3) is calculated as,
The distance between B (1,-7) and M (4,-3) is calculated as,
The distance between C (1,1) and M (4,-3) is calculated as,