10cm^3 of aa hydrocarbon was completely combusted in 200cm^3 of O2. It was found that there was 20cm^3 of O2 remaining and the volume of CO2 produced was 120cm^3. Determine the formula of the hydrocarbon.