How do you solve for x in ax + b = cx?

We have that

$a x + b = c x$

$a x - c x = - b$

$x \cdot \left(a - c\right) = - b$

Assuming that $a \ne c$ we have that

$x = - \frac{b}{a - c}$