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