Dear Student
The general combustion reaction for hydrocarbons containing O is as follows
CxHyOz + (x+y/4 -z)O2 ------> xCO2 + y/2 H2O
Now 300 ml of CO2 and 300ml of H2O are being produced per 50 ml of hydrocarbon
It means 6 moles each of CO2 and H2O re being produced per mole of hydrocarbon as 6 times the volumes are being produced.
hence the reaction can be written as
CxHyOz + (x+y/4 -z)O2 ------> 6CO2 + 6H2O
Comparing with general equation
x = 6
y/2 = 6; y = 12
Now total O on left side = z + 2 (x+y/4 -z) = z + 2(6+3-z) = 18-z
Total O on right side = 12
18 - z = 12
z = 6
Therefore molecular formula of compound is C6H12O6
Regards