You will first need to get a balanced equation for the combustion reaction.
e.g CH4 + 2 O2 -> CO2 + 2 H2O (you will need to balance the coefficients based on the type of hydrocarbon)
Afterwards, you will need to calculate the # moles of hydrocarbon using n = m/M
And once you find the # moles of hydrocarbon, you can easily calculate the theoretical # moles
of CO2 or H2O produced and convert that back to mass using the same equation 3 lines above!
hope this helps