Here's a simplified chemical equation for the combustion of methane, a simple hydrocarbon:
CH4 + 2O2 → CO2 + 2H2O + energy
In summary, the elements present in the products of hydrocarbon combustion are:
* Carbon (C)
* Hydrogen (H)
* Oxygen (O)
The oxygen comes from the air, while the carbon and hydrogen come from the hydrocarbon itself.