If we are talking about balancing equations, we can see that there are 18 atoms of Oxygen on the product side, 6 from glucose and 12 from carbon dioxide.
For hydrogen we only see 12 on the reactant side, all 12 atoms of Hydrogen will come from the water molecule.