find value of p such that the equation (x+1)(x+2)=p

Use FOIL to expand

(x+1)(x+2)
=x²+2x+x+2
=x²+3x+2