Find one factor of the form $kx^{m}+n$, where $kx^{m}$ divides the monomial with the highest power $\left(y+1\right)x^{2}$ and $n$ divides the constant factor $-10y-10$. One such factor is $x+5$. Factor the polynomial by dividing it by this factor.
$$\left(x+5\right)\left(xy+x-2y-2\right)$$
Consider $xy+x-2y-2$. Do the grouping $xy+x-2y-2=\left(xy+x\right)+\left(-2y-2\right)$, and factor out $x$ in the first and $-2$ in the second group.
$$x\left(y+1\right)-2\left(y+1\right)$$
Factor out common term $y+1$ by using distributive property.