Combustion analysis of an unknown compound containing only carbon and hydrogen

produced 2.277 g of CO2 and 1.161 g of H2O. What is the empirical formula of the compound?

How do I go about solving this?

1 answer

Convert g CO2 to percent C.
Convert g H2O to percent H.

Now take a 100 g sample and you have the percents converted to grams.
Calculate moles C
Calculate moles H.
Find the ratio of the smallest to the largest in small whole numbers.