$$ \begin{aligned} 5 &= \frac{x}{7}&& \text{multiply ALL terms by } \color{blue}{ 7 }. \\[1 em]7\cdot5 &= 7 \cdot \frac{x}{7}&& \text{cancel out the denominators} \\[1 em]35 &= x&& \text{ swap the left and right side of the equation } \\[1 em]x &= 35&& \\[1 em]x &= 35&& \\[1 em] \end{aligned} $$