x(b+c-d)-y(d-b-c)-2c+2d-2b
=xb+xc-xd-yd+yb+yc-2c+2d-2b
=b(x+y-2)+(x+y-2)+d(2-x-y)
=b(x+y-2)+(x+y-2)-d(x+y-2)
=(x+y-2)*(b+c-d)
x(b+c-d)-y(d-b-c)-2c+2d-2b
=xb+xc-xd-yd+yb+yc-2c+2d-2b
=b(x+y-2)+(x+y-2)+d(2-x-y)
=b(x+y-2)+(x+y-2)-d(x+y-2)
=(x+y-2)*(b+c-d)