Thanks asinus,
I got the same answser as you but my answer invlolved some calculus.
To find the minimum distance between the points \((12,0)\;\; and \;\;(x, \sqrt{49-x^2}+5)\)
I also graphed it to as a second way to solve it.
Here is my gaphical solution. If you right click on the point C you can drag it and see what difference it makes to the distance CD.
https://www.geogebra.org/classic/vbr4yrcr
The pic without the interaction is below.