So, you know the ideal gas law is PV = nRT. In this problem, P and T are fixed. So, it is useful to move all of the constant terms to one side of the equation and move all of the non-constant terms to the other side of the equation. After some rearranging, you get:
V/n = RT/P = C
Since RT/P is constant (C), that means that:
Vinitial/ninitial = C
and
Vfinal/nfinal = C
or
Vinitial/ninitial = Vfinal/nfinal
Using this approach, you can also derive some to the other simplified ideal gas laws, like Charles' law (V1/T1 = V2/T2) or Boyle's law (P1V1 = P2V2).