Answer:
p = 2 and q = 14
Explanation:
Evaluate f(g(x)) by substituting x = g(x) into f(x), that is
f(px + 4)
= 3(px + 4) + p = 3px + 12 + p
f(g(x)) = 3px + 12 + p and f(g(x)) = 6x + q
Equating the 2 expressions gives
3px + 12 + p = 6x + q
Compare the coefficients of like terms and the constant term
For the 2 expressions to be equal then
3p = 6 ⇒ p = 2 , and
q = 12 + p = 12 + 2 = 14