Step-by-step explanation:
Use the Factor Theorem,
" if x-a is a factor of f(x), then f(a) =0,
So here, since x-3 is a factor then f(3)=0,
So first step, plug in 3 for x for the serperate equations.
Simplify both equations,
Isolate the constants,
We have a system of equations so let eliminate a variable, by subtracting the two equations.
Plug p back in for any one of the equations to find q.
So p is -6
q is 4.5