We can use synthetic division to find the values of b. The coefficients of p(x) is the dividend. The divisor is the root of the factor (x + b). The divisor is then -b.
Setting up the division,
-b | 1 (b - 2) 1 (12 - b)
-b 2b (-2b2 - b)
___________________________________________
1 -2 (2b + 1) 0
Allow me to explain the process. I place the first coefficient below the line in the first column. Then I multiply that digit by the divisor. The product became the addend in the next column. I then added the digits in the second column. I multiply the sum in this column by the divisor. The product became the addend in the succeeding column. Then I repeated the process until I get to the last column.
Now, we use the last column to set up an equation to solve for b. Notice that the last digit under the line in the division is zero. This last digit is the remainder.
12 - b - 2b2 - b = 0
-2b2 - 2b + 12 = 0
-2(b2 + b - 6) = 0
-2(b + 3)(b - 2) = 0
b = -3 and b = 2
Now just verify these values of b by plugging them into the division. Either one of them or both of the are solutions.