Answer
$(y+2)(x-1)$
Work Step by Step
$\bf{\text{Solution Outline:}}$
To factor the given expression, $
xy+2x-y-2
,$ use factoring by grouping.
$\bf{\text{Solution Details:}}$
Grouping the first and second terms and the third and fourth terms, the given expression is equivalent to
\begin{array}{l}\require{cancel}
(xy+2x)-(y+2)
.\end{array}
Factoring the $GCF$ in each group results to
\begin{array}{l}\require{cancel}
x(y+2)-(y+2)
.\end{array}
Factoring the $GCF=
(y+2)
$ of the entire expression above results to
\begin{array}{l}\require{cancel}
(y+2)(x-1)
.\end{array}