This is a composite function, f(g(x)). This means, working from the inside function to the outside, we will take the function g and plug it in for x in the f function. g(x) = 2x + 4. We will plug that into f(x) and evaluate f(2x+4):
and I imagine your teacher has you simplify completely. We FOIL and distribute to get