Find $a$ and $b$ such that $x+1$ and $x+2$ are factors of the polynomials $x^3+ax^2-bx+10$.
Here I am not sure that how can I obtain the value of $a$ and $b$, I tried to multiply $x+1$ and $x+2$ to obtain a quadratic equation by which I divided the obtained quadratic polynomial with the above given cubic polynomial, But it didn't worked. How can I overcome my answer.