Explanation:
it is really a simple concept : instead of the isolated variable x you grab the whole function of g(x) and put that into the place of any x appearance in f(x) : g(x) becomes the input argument for f(x).
so,
f(g(x)) = sqrt(36/(x + 3)) = 6×sqrt(1/(x + 3))