Given the task definition and input, reply with output. Given a scientific passage and an answer, generate a question for the given answer.

Passage: The number of moles of carbon dioxide gas is first calculated by stoichiometry. Then the ideal gas law is used to calculate the volume of CO 2 produced. Answer: stoichiometry
How are the number of moles of carbon dioxide gas calculated?