Consider the reaction $\ce{SO_2_{(g)} + \frac{1}{2} O_2_{(g)}\longrightarrow SO_3_{(g)}}$. What effect is there on the molar ratio $\frac{n_{SO_3}}{n_{SO_2}}$ at equilibrium if the pressure is increased by reducing the initial volume by half?
Here's what I did: I wrote $\ce{SO_2_{(g)} + \frac{1}{2} O_2_{(g)} \longrightarrow SO_3_{(g)}}$
Before the reaction starts, we have $1$ mole of $\ce{SO_2}$, $\frac{1}{2}$ moles of $\ce{O_2}$ and $0$ moles of $\ce{SO_3}$
During the reaction I think we have $x$ moles of $\ce{SO_2}$, $\frac{x}{2}$ moles of $\ce{O_2}$ and $x$ moles of $\ce{SO_3}$.
At equilibrium I think we have $1-x$ moles of $\ce{SO_2}$, $\frac{1-x}{2}$ moles of $\ce{O_2}$ and $x$ moles of $\ce{SO_3}$.
Now, I am not sure if I put those moles correctly. And I also don't really know how to proceed from here, so I guess that I am stuck. I found this similar question Chemical Equilibrium - Le Chatelier's Principle, Change in Volume, but I don't really know how to obtain the molar ratio from there.