Interesting problem. I kind of got halfway but I'm out of time. Still maybe this will help.
First, find a generic balanced equation for combustion of a hydrocarbon in the form C
xH
y + αO
2 βCO
2 + γH
2O
Where the Greek letters are coefficients in terms of x and y. Probably you have already done this.
If the conditions were the same before and after the reaction (when the volumes are measured), you can make some assumptions about the volumes of each participating reactant and product being proportional to molar stoichiometric equivalents, no? (Because at STP, the volume per mole is already known). So, if you consume 10 cm
3 of hydrocarbon, then you also consume 10α cm
3 of oxygen and produce 10β cm
3 of carbon dioxide and 10γ cm
3 of water. The total net volume is -20 cm
3.
This gives you one equation and two unknowns, but the "x" terms appear to cancel out. I was able to get y = 4. Haven't figured out how you get x yet.
Maybe you can find a flaw in that reasoning, but it seems to be on the right track. I did it rather quickly though.