4(x-y)-2(x-y)2
factorise
x- y is common to both terms as is 2 so
4(x-y)-2(x-y)2 = 2(x-y)(2 - (x-y)) = 2(x - y)(2 - x + y)