2m2-5m-12

Factor -5 out of -5m.

2m2-5(m)-12

Rewrite -5 as 3 plus -8

2m2+(3-8)m-12

Apply the distributive property.

2m2+3m-8m-12

2m2+3m-8m-12

Group the first two terms and the last two terms.

(2m2+3m)-8m-12

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

m(2m+3)-4(2m+3)

m(2m+3)-4(2m+3)

Factor the polynomial by factoring out the greatest common factor, 2m+3.

(2m+3)(m-4)

Factor 2m^2-5m-12