\[\text{ab} - cb - ax + cx + 2c - 2a =\]
\[= b(a - c) - x(a - c) - 2(a - c) =\]
\[= (a - c)(b - x - 2).\]