I am stuck with this problem for a few days now.

I have the equation, $$\ce{C_xH_yO_z + O2 -> CO2 + H2O}$$ and data

Mass of Sample (g) Mass of $\ce{CO2}$ (g) Mass of $\ce{H2O}$ (g)
0.5964 0.3048 0.6240

And the molecular mass of the Sample is $\pu{172.22 g/mol}$.

How can I know the molecular formula of the sample? Should I convert those to a mole or something?

New contributor
Star3311 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 1
    $\begingroup$ Where are you learning chemistry from? This is a very standard stoichiometry question and any decent textbook should have worked examples. My suggestion, if you don't already have a teacher who can guide you, is to invest in a general chemistry textbook. There are YouTube videos and all out there, too. $\endgroup$ – orthocresol Feb 21 at 13:25
  • $\begingroup$ What any of this has to do with mass-spectrometry? Also, you cannot convert a physical quantity to a unit, this is nonsense. $\endgroup$ – andselisk Feb 21 at 13:28
  • 1
    $\begingroup$ If you want to delete the question completely, there is a delete button under the question that should be visible to you. $\endgroup$ – Shoubhik R Maiti Feb 21 at 13:40
  • $\begingroup$ Add variables in-front of $\ce{CO2}$ and $\ce{H2O}$, say $a$ and $b$. Convert masses to moles. Then, $a=x$ and $b=y/2$. You can take it from here and figure it out. $\endgroup$ – z1273 Feb 21 at 15:29
  • $\begingroup$ Anyway, I have solved your problem. One of your numerical values is $10$ times too high. Please check them ! $\endgroup$ – Maurice Feb 21 at 20:48