For a polynomial of the form ax2+bx+c, rewrite the middle term as a sum of two terms whose product is a⋅c=1⋅-2=-2 and whose sum is b=-1.
Reorder -2p2 and -cp.
Factor -1 out of -cp.
Rewrite -1 as 1 plus -2
Apply the distributive property.
Multiply cp by 1.
Remove unnecessary parentheses.
Factor out the greatest common factor from each group.
Group the first two terms and the last two terms.
Factor out the greatest common factor (GCF) from each group.
Factor the polynomial by factoring out the greatest common factor, c+p.