Related questions

Question

How did they find out the number of moles C or H when the chemical equation was not given at the first place? I do not get the part where they multiple 1 molc/ 1 mol co2 and 2 molh/ 1 mol h2o.