In this case, since 24 molecules of carbon dioxide, and considering the given reaction, the following stoichiometric calculation turns out helpful to determine the requested molecules of C₆H₁₂O₆ that are needed:
It is clear that Avogadro's number is needed to perform the one to six relationship between C₆H₁₂O₆ and CO₂.
Use the coefficients as a ratio. 1:6 = x:24. You can write these as fractions and cross multiply, 6x=24. Solve and x=4, so four molecules would be needed