f(x)=2x-2

g(x)=4x+2
find (f0g)(x)

g(x) substitutes for x in f(x)

... 2(4x + 2) - 2 = 8x + 2