We know that glucose, C_6H_12O_6C6H12O6, has a molar mass of 180.16*g*mol^-1180.16⋅g⋅mol−1.
And so (i) we calculate the molar quantity of the 6*g6⋅g mass......
"Moles of glucose"-=(6*g)/(180.16*g*mol^-1)=0.0333*molMoles of glucose≡6⋅g180.16⋅g⋅mol−1=0.0333⋅mol
And so we gots 0.0333*mol0.0333⋅mol of glucose; but we further know that IN EACH MOLE of glucose there are six moles of carbon...
And so there are (ii).....................
0.0333*molxx6*"atoms"xxN_A=0.200*molxxN_A0.0333⋅mol×6⋅atoms×NA=0.200⋅mol×NA
i.e. 0.200*molxx6.022xx10^23*mol^-1=1.20xx10^23*"carbon atoms."0.200⋅mol×6.022×1023⋅mol−1=1.20×1023⋅carbon atoms.