From the periodic table:
mass of carbon = 12 grams/mole
mass of hydrogen = 1 gram/mole
mass of oxygen = 16 grams/mole
The given compound C₆H₁₂O₆ has 6 moles of carbon, 12 moles of hydrogen and 6 moles of oxygen.
Therefore, the molar mass of the given compound will be calculated as follows:
molar mass = 6(12) + 12(1) + 6(16) = 180 grams/mole