When 10cm3 of a gaseous hydrocarbon, a compound containing only carbon and hydrogen, is burnt in excess oxygen, the products consist of 30cm3 of carbon dioxide and 30cm3 of water vapour, measured under the same conditions of temperature and pressure. Determine the molecular formula of the hydrocarbon.