# How to figure out the molecular formula of organic molecule formed from CO2 and H2O? [closed]

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.
• 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. – orthocresol Feb 21 at 13:25
• What any of this has to do with mass-spectrometry? Also, you cannot convert a physical quantity to a unit, this is nonsense. – andselisk Feb 21 at 13:28
• If you want to delete the question completely, there is a delete button under the question that should be visible to you. – Shoubhik R Maiti Feb 21 at 13:40
• 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. – z1273 Feb 21 at 15:29
• Anyway, I have solved your problem. One of your numerical values is $10$ times too high. Please check them ! – Maurice Feb 21 at 20:48