Find the factors

ab+ 2a +3b +6

First group the terms to get

(ab+2a) + (3b+6)

Now you can find a factor for each term

a(b+2) + 3(b+2)

Factor out the (b+2) in each term

(b+2)(a+3)