Consider the polynomial
\(P(x)=x^3+a x^2+b x-12\),
where \(a\) and \(b\) are real numbers.
It is given that \(x+1\) is a factor of \(P(x)\) and that, when \(P(x)\) is divided by \(x-2\), the remainder is \(-18\) .
Find \(a\) and \(b\). (3 marks)
--- 8 WORK AREA LINES (style=lined) ---