Need more information to solve, but the standard rule is:
(f◦g)(x) = f(g(x))
(g◦f)(x) = g(f(x))
3.3m questions
4.2m answers