For a polynomial of the form ax2+bx+c, rewrite the middle term as a sum of two terms whose product is a⋅c=6⋅-2=-12 and whose sum is b=-1.
Factor -1 out of -p.
Rewrite -1 as 3 plus -4
Apply the distributive property.
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, 2p+1.