The polynomial P(x)=x3+ax2+bx+12 has factors (x−1) and (x+2). What is the value of a+b?
−13
−10
−7
−5