How many moles of CO2 are produced if 6 moles of O2 are used

The equation given will show you the ratio for CO2 and O2. For every 6CO2, there is 6O2. Therefore, their ratio is 1:1, which means they share the same amount of moles. Moles of CO2: 6 moles
this is not my answer by the way. I found it online somewhere else. SO if im rigt it is not my credit and if wrong pleez dont attack me. good luck
Answer: 6 moles
Explanation:
According to the law of conservation of mass, mass can neither be created nor be destroyed. Thus the mass of products has to be equal to the mass of reactants. The number of atoms of each element has to be same on reactant and product side. Thus chemical equations are balanced.
The balanced chemical reaction is:
[tex]C_6H_{12}O_6+6O_2\rightarrow 6CO_2+6H_2O[/tex]
According to the stoichiometry:
6 moles of [tex]O_2[/tex] produce 6 moles of [tex]CO_2[/tex]
Thus 6 moles of [tex]CO_2[/tex] are produced.