Answer:
Step-by-step explanation:
The most straightforward way is direct substitution of g(x) for x in f(x):