This is a Max/min problem, I'm trying calculate the shortest distance between the 2 using pythagoras theorem and diffrenciate it in order to calculate the mininmum of the Red line below:

I'm having trouble putting the equation together...am I going the right way about it?
1st I came up with:
$$f(x) - g(x) = (x+10) - (6\sqrt{x})$$
Of course that didn't work, then I tried ($R$ being the distance of the red line)
$$R = (x+10)^2 - (6\sqrt{x})^2$$
Diffrenciated that and I still didn't get the right answer...I had a feeling both are incorrect, a hint would be brilliant, apologies for asking for many of these questions recently! just getting my brain into shape for September, it's been 2 years since I've done this kinda stuff!
Correct answer: $\dfrac{1}{\sqrt{2}}$