$$ \begin{aligned} 3 &= 2q-1&& \text{ swap the left and right side of the equation } \\[1 em]2q-1 &= 3&& \text{ move -1 to the right } \\[1 em]2q &= 3+1&& \\[1 em]2q &= 4&& \text{ divide both sides by $ 2 $ } \\[1 em]q &= \frac{4}{2}&& \\[1 em]q &= 2&& \\[1 em] \end{aligned} $$