A 5.00g sample of natural gas, containing methane, CH4, and ethylene, C2H4, was burned in excess oxygen, yielding 14.5g CO2 and some H2O as products. What percent of the sample was ethylene?
Moles and percent composition
The Attempt at a Solution
I don't really understand how to correctly set up the problem. I know that ethylene is about 40% and methane is about 60% by guess-and-checking percents until the two gas more or less result 14.5g CO2 combined, from 5.00g sample, but this way is obviously inefficient. How is it correctly set up to result the correct and accurate answer?