# How do you factor by grouping ax-ay-bx+by?

$a x - a y - b x + b y$
$a \left(x - y\right) - b \left(x - y\right)$
$\left(a - b\right) \cdot \left(x - y\right)$