Because of the chemical formula of glucose we can infer the rations of each atom from one another, we can see that every 6 atoms of carbon there are 12 atoms of hydrogen. Therefore, there is twice as much hydrogen than carbon or 12.04 × 10^22 atoms or 0.2 moles of hydrogen in the sample. Following this we can infer that a glucose molecule needs 6 atoms of carbon, therefore we divide the amount of carbon by 6, and converting it into moles we will get 0.0167 moles of glucose.