To add or subtract expressions, expand them to make their denominators the same. Least common multiple of $5$ and $10$ is $10$. Multiply $\frac{2x}{5}$ times $\frac{2}{2}$.
$$\frac{2\times 2x}{10}-\frac{8-x}{10}$$
Since $\frac{2\times 2x}{10}$ and $\frac{8-x}{10}$ have the same denominator, subtract them by subtracting their numerators.
$$\frac{2\times 2x-\left(8-x\right)}{10}$$
Do the multiplications in $2\times 2x-\left(8-x\right)$.
To add or subtract expressions, expand them to make their denominators the same. Least common multiple of $5$ and $10$ is $10$. Multiply $\frac{2x}{5}$ times $\frac{2}{2}$.
$$\frac{2\times 2x}{10}-\frac{8-x}{10}$$
Since $\frac{2\times 2x}{10}$ and $\frac{8-x}{10}$ have the same denominator, subtract them by subtracting their numerators.
$$\frac{2\times 2x-\left(8-x\right)}{10}$$
Do the multiplications in $2\times 2x-\left(8-x\right)$.