A hydrocarbon is a compound which consists of carbon and hydrogen only. It undergoes combustion forming carbon dioxide and water as products.
Given mass of hydrocarbon on combustion = 0.39
Given mass of CO2 = 1.32g
Given mass of H2O = 0.27g
Mass of carbon in 0.39g of CO2 = (12/44) x (1.32) = 0.36g CO2
Mass of hydrogen in 0.27 g of H2O= (2/18) x (0.27) = 0.03g H2O
Percentage of C in hydrocarbon = (0.36/0.39) x (100) = 92.30%
Percentage of H in hydrocarbon= (0.03/0.39) x (100) = 7.69%