ab+6a+2b+12
Group the first two terms and the last two terms.
(ab+6a)+2b+12
Factor out the greatest common factor (GCF) from each group.
a(b+6)+2(b+6)
a(b+6)+2(b+6)
Factor the polynomial by factoring out the greatest common factor, b+6.
(b+6)(a+2)
Factor by Grouping ab+6a+2b+12