Variable $x$ cannot be equal to $0$ since division by zero is not defined. Multiply both sides of the equation by $2x$, the least common multiple of $x,2$.
$$2\times \frac{5}{8}=5x$$
Express $2\times \frac{5}{8}$ as a single fraction.
$$\frac{2\times 5}{8}=5x$$
Multiply $2$ and $5$ to get $10$.
$$\frac{10}{8}=5x$$
Reduce the fraction $\frac{10}{8}$ to lowest terms by extracting and canceling out $2$.
$$\frac{5}{4}=5x$$
Swap sides so that all variable terms are on the left hand side.
$$5x=\frac{5}{4}$$
Divide both sides by $5$.
$$x=\frac{\frac{5}{4}}{5}$$
Express $\frac{\frac{5}{4}}{5}$ as a single fraction.