Let the equation of the circle be,
S=x2+y2−10x+14y−151=0
Substituting the point (−7,2) in the given equation,
S=(−7)2+(2)2−10(−7)+14(2)−151
=0
Therefore, M(−7,2) is on the circle.
The general equation of the circle is,
ax2+by2+2gx+2fy+c=0
Comparing the given equation by general equation of the circle,
g=−5, f=7 and c=−151.
The radius of the circle is,
r=√g2+f2−c
=√(−5)2+72+151
=15
The center of the circle is,
C=(−g,−f)
=(5,−7)
Now,
CM=√(5+7)2+(−7−2)2
=√144+81
=√225
=15
The shortest distance is,
r−CM=15−15
=0