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