Given the equation:
$$\frac{x - 2}{x - 7} = \frac{5}{8}$$
Multiply the equation sides by the denominator -7 + x
we get:
$$x - 2 = \frac{5 x}{8} - \frac{35}{8}$$
Move free summands (without x)
from left part to right part, we given:
$$x = \frac{5 x}{8} - \frac{19}{8}$$
Move the summands with the unknown x
from the right part to the left part:
$$\frac{3 x}{8} = - \frac{19}{8}$$
Divide both parts of the equation by 3/8
x = -19/8 / (3/8)
We get the answer: x = -19/3