Answer:
g(x) = x + 3
Explanation:
A composite function is a function that is written inside another function which means substituting one function into another function.
Ex: (fоg)(x) is a composite function, where x of f(x) is substituted by g(x)
∵ h(x) = (fоg)(x)
∵

∵

→ Substitute x of f(x) by g(x)
∴ (fоg)(x) =

→ Equate (fоg)(x) by h(x)
∴

→ Cancel the roots from the two sides
∴ g(x) + 2 = x + 5
→ Subtract 2 from both sides
∴ g(x) + 2 - 2 = x + 5 - 2
∴ g(x) = x + 3