Variable $x$ cannot be equal to any of the values $0,1$ since division by zero is not defined. Multiply both sides of the equation by $x\left(x-1\right)$, the least common multiple of $x,x-1$.
$$\left(x-1\right)\times 8=x\times 5$$
Use the distributive property to multiply $x-1$ by $8$.
$$8x-8=x\times 5$$
Subtract $x\times 5$ from both sides.
$$8x-8-x\times 5=0$$
Combine $8x$ and $-x\times 5$ to get $3x$.
$$3x-8=0$$
Add $8$ to both sides. Anything plus zero gives itself.