Apply the distributive property.

Multiply by .

Apply the distributive property.

Multiply by .

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, .

Factor by Grouping 3ab(x+1)-2(x+1)