construct two composite functions, Evaluate each composite function for x=2. i do not fully understand functions yet can someone explain and show me what to do step by step

f(x)=x+1 g(x)=x-2

f is a function of x

a composite function is a function of a function. So

since f(x) = x+1,
f(g) = g+1

But, g is also a function, so

f(g) = (x-2)+1 = x-1

Similarly,

g(f) = f-1 = (x+1)-2 = x-1

In this case, f(g(x)) = g(f(x))