**Question**: Given f(x) and g(x), please find (fog)(X) and (gof)(x) f(x) = 2x g(x) = x+3

**Answer**: f(x) = 2x

g(x) = x + 3

First let us find (fog)(x)

(fog)(x) = f(g(x)

= f(x+3)

= 2(x+3)

= 2x + 6

==> (fog)(x) = 2x + 6

Now let us find (gof)(x):

(gof)(x) = g(f(x)

= g(2x)

= 2x + 3

==> (gof)(x) = 2x + 3