First, we need to convert this to moles. Sulfur's molar mass is 32.06. For this, I'll also assume that the mass is an exact number (see here)
2 g S / 32.06 g/mol = 0.0623830318 mol S
Now we just multiply with the Avogadro's Number.
0.0623830318 mol S * 6.022*10^23 mol^-1 = 3.756706176*10^22 atoms S
Since we used an exact number, the answer can use any number of significant figures.
I already answered this in a previous question, so I'll just copy paste my response.
It's basically the same thing, we just need to use sodium's molar mass instead of silicon's.
43.7 g / 22.990 g/mol = 1.900826446 mol Na
This time I'll be rounding it again, to 1.901 mol Na. We only need to round at the end, due to significant figures, but it's much easier than typing it all out unless you have a calculator that allows you to input the previous answer such as TI-89.
1.901 mol Na * 6.022x10^23 mol^-1 = 1.1447822x10^24 atoms Na
Because we have three figures in the starting measurement, we also need three figures in the answer. Make sure to round the last digit.
1.14x10^24 atoms Na
I highly suggest memorizing Avogadro's Number for these sorts of calculations, as well as keeping a periodic table with all of the molar masses on hand. Something like WebElements can also be useful.
It's basically the same thing, we just need to use sodium's molar mass instead of silicon's.
43.7 g / 22.990 g/mol = 1.900826446 mol Na
This time I'll be rounding it again, to 1.901 mol Na. We only need to round at the end, due to significant figures, but it's much easier than typing it all out unless you have a calculator that allows you to input the previous answer such as TI-89.
1.901 mol Na * 6.022x10^23 mol^-1 = 1.1447822x10^24 atoms Na
Because we have three figures in the starting measurement, we also need three figures in the answer. Make sure to round the last digit.
1.14x10^24 atoms Na
I highly suggest memorizing Avogadro's Number for these sorts of calculations, as well as keeping a periodic table with all of the molar masses on hand. Something like WebElements can also be useful.