You don't need to know a mole-volume relationship of gases in order to figure this out. By rearranging the ideal gas law, pv=nrt, you'll see that n = pv/rt. First of all, you want to find out the total moles when you started out, which would be:
moles of CO2 + moles of H2O = PV/RT
You know that the boiling point of water is 373 K, so by 298 K, H2O isn't a gas anymore and is a liquid now. Because there is only one gas left, you want to find the number of moles of that one gass, therefore giving you:
moles of CO2 = PV/RT
However, you're not done yet. You know that the ratio would be moles of CO2 / moles of H2O. In order to get that, you can divide the two formulas on the top.
(moles of CO2 + moles of H2O) / moles of CO2= (P1V/RT1) / (P2V/RT2)
You always know that R will be constant and through Gay-Lussac's law, you know that volume is constant. Therefore, simplifying your problem to:
(moles of CO2 + moles of H2O) / moles of CO2= (P1/T1) / (P2/T2)
and through some algebraic simplifications...
moles of H2O / moles of CO2 = P1T2 / P2T1
Just plug in the numbers for pressure and temperature and you'll get the ratio.