Evaluate: xy-2x-2+y

Expression: $xy-2x-2+y$

Factor out $x$ from the expression

$x \times \left( y-2 \right)-2+y$

Factor out $y-2$ from the expression

$\left( y-2 \right) \times \left( x+1 \right)$