Factorise completely x(squared)+xy-2x-2y

2. $x^2+xy-2x-2y$
Factor x from the first two terms and -2 from the last two terms:

$x(x+y)-2(x+y)$

Now, factor x+y:

$(x+y)(x-2)$