Question 168536
2ax-2bx+ay-by

I assume you want to factor.

When you have 4 terms, it is best to factor by groups.

2ax - 2bx = group 1

ay - by = group 2

======================================================

2ax - 2bx = 2x( a - b)

======================================================

ay - by = y(a - b)

Do you see the quantity (a - b)?

We only need one of them.

Final answer: (2x + y)(a - b)