We are given the following functions:

We are asked to determine the following:

This is a composition of functions and it is equivalent to the following:

This means that we will substitute the value of "x" is f(x) for the function g(x), like this:

Now we simplify, first by applying the distributive property:

Now we solve the operation:

And thus we have the composition of the functions.
For part B we are asked:

This means that this time we will substitute the value of "x" in g(x) for the function f(x), like this:

Now we simplify the function. First, we solve the square using the following relationship:

Using the relationship we get:

Now we apply the distributive property:

Now we solve the operations:

And thus we get the composition of the functions.