6p2-p-2

Factor -1 out of -p.

6p2-(p)-2

Rewrite -1 as 3 plus -4

6p2+(3-4)p-2

Apply the distributive property.

6p2+3p-4p-2

6p2+3p-4p-2

Group the first two terms and the last two terms.

(6p2+3p)-4p-2

Factor out the greatest common factor (GCF) from each group.

3p(2p+1)-2(2p+1)

3p(2p+1)-2(2p+1)

Factor the polynomial by factoring out the greatest common factor, 2p+1.

(2p+1)(3p-2)

Factor 6p^2-p-2