\[ax - 3a + bx - 3b =\]
\[= (ax - 3a) + (bx - 3b) =\]
\[= a(x - 3) + b(x - 3) =\]
\[= (x - 3)(a + b)\]