\[ax - ay + bx - by =\]
\[= a(x - y) + b(x - y) =\]
\[= (x - y)(a + b)\]
\[Проверка:\]
\[(x - y)(a + b) =\]
\[= ax - ay + bx - by\]
\[\Longrightarrow верно.\]