# How do you factor by grouping ab + 2a + 3b + 6?

$\textcolor{red}{a b + 2 a} + \textcolor{b l u e}{3 b + 6}$
$= \textcolor{red}{a \left(b + 2\right)} + \textcolor{b l u e}{3 \left(b + 2\right)}$
$= \left(a + 3\right) \left(b + 2\right)$