the x,y lie on the below circle with centre A(-5,12)
x2+y2 implies distance of any point on the circle from the origin
for distance to be minimum the point should lie on the normal of the circle which passes through origin
as radius is 14 and distance between centre and origin is 13
thus minimum value of x2+y2=1