# How do you factor by grouping: xy - 2y + 2x - 4?

Collect $y$ between the first and second and $2$ between the third and fourth:
$y \left(x - 2\right) + 2 \left(x - 2\right) =$
Collect (x-2;
$= \left(x - 2\right) \left(y + 2\right)$