the cubic polynomial x^3 +ax^2 + bx - 8 where a and b are constants has factors x+1 and x+2. find values a and b

i'm thinking you expand (x+2)(x+1) to get the quotient of x^2 + 3x + 2 but i'm not sure

would be so grateful for some help thanks (Speechless)