One mole of "C"_6"H"_12"O"_6"C6H12O6 has a molar mass of "180.16 g/mol"180.16 g/mol. https://en.m.wikipedia.org/wiki/Glucose
One mole of "C"_6"H"_12"O"_6"C6H12O6 also has 6 moles of carbon atoms.
90cancel("g C"_6"H"_12"O"_6)xx(1cancel("mol C"_6"H"_12"O"_6))/(180.16cancel("g C"_6"H"_12"O"_6))xx(6cancel("mol C atoms"))/(1cancel("mol C"_6"H"_12"O"_6))xx(6.022xx10^23 "C atoms")/(1cancel("mol C atoms"))=1.8xx10^24"C atoms"