Answer
Number of C atoms=Number of O atoms
$=3.01\times10^{22}$ atoms
Number of H atoms$=6.02\times10^{22}$ atoms
Work Step by Step
Number of moles of $C_{6}H_{12}O_{6}$=$\frac{\text{mass in grams}}{\text{molar mass of glucose}}$
$=\frac{1.50\,g}{180.156\,g/mol}=0.008326\,mol$
Number of glucose molecules=
$0.008326\times6.022\times10^{23}=5.0139\times10^{21}$ molecules.
Now, in each glucose molecule, there are 6 C, 12 H and 6 O atoms.
Therefore,
Number of C atoms=Number of O atoms=
$6\times5.0139\times10^{21}=3.01\times10^{22}$ atoms
Number of H atoms=
$12\times5.0139\times10^{21}=6.02\times10^{22}$ atoms