f(x)=x−2f(x)=x-2 , g(x)=x+2g(x)=x+2
Set up the composite result function.
g(f(x))g(f(x))
Evaluate g(f(x))g(f(x)) by substituting in the value of ff into gg.
g(x−2)=(x−2)+2g(x-2)=(x-2)+2
Combine the opposite terms in (x−2)+2(x-2)+2.
g(x−2)=x