umm not sure if this is the coreect way to do it but...
since all values are measured at the same temp/pressure, the ratio of moles should stay the same so we dont have to calculate the number of moles.
instead, we can just use their volumes.
the volume of oxygen gas used up in the reaction is 150mL-20mL=130ml, volume carbon dioxide is 80mL and volume of hydrocarbon is 20mL so:
20 (C?H?) + 130 O2 --> 80 CO2 + ?H2O
simplyfies to:
2(C?H?) + 13 O2 ---> 8 CO2 + 10 H2O since there's 5 O2 molecules left which have to form water, we know that 10 H2O molecules will be formed
so all we have to do to find the formula for the hydrocarbon is pretty much balance the equation (sort of)
so we have 20 H and 8 C, dividing both by two to get the amount in one molecule of the hydrocarbon since two have been used in the equation
so the equation will be C4H10 (butane)