Calculates carbon mass from CO2 and hydrogen mass from H2O, subtracting their sum from total sample mass to determine oxygen content.