There are a couple ways we can solve this:
1. We can plug in g into f and then make x = 5
So f(g(5)) = 19
2. We can plug in g pre-solved with x = 5 into f
So again, f(g(5)) = 19
As you can see, either way works fine. it just depends on what makes more sense to you personally.