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