This is about composite functions, where the second function
[tex]g(x) = 3 {x}^{2} + 7x[/tex]
becomes an input for the first function
[tex]f(x) = x + 2[/tex]
That is,
[tex](f \circ \: g)(x) = f(x) \circ g(x)[/tex]
[tex](f \circ \: g)(x) = f(g(x))[/tex]
[tex] \rightarrow \: (f \circ \: g)(x) = f(3x {}^{2} + 7x)[/tex]
[tex](f \circ \: g)(x) = (3 {x}^{2} + 7x) + 2[/tex]
[tex] \therefore \: (f \circ \: g)(x) = 3x {}^{2} + 7x + 2[/tex]