Volume is proportional to the amount of a substance.
You know that the oxygen is in excess so the limiting agent is the hydrocarbon.
Take 10 cm³ to be proportional to 1 mol.
You know that for a complete combustion : hydrocarbon + AOxygen - > Bcarbon dioxide + Cwarter where A, B and C are the relative moles of each substance in the reaction.
For an incomplete combustion: hydrocarbon + DOxygen - > Ecarbon monoxide + Fwater where D, E and F are the relative moles of each substance in the reaction.
Balance the constants to get the hydrocarbon.