In this composite you are going to stick the g function into the f function everywhere you see an x. So that will look like this:

. Putting in our x value of 1, now we have

. Simplifying that we have

which of course simplifies to 1 - 3 + 6 which is 4