1) We know that there are 6.023 X 10^23 number of atoms or molecules or ions in one mole of a substance
In case of Magnesium it will have 6.023 X 10^23 number of atoms in one mole
The molar mass of Mg is 24 g/mol
so the mass of one mole of Mg will be 24g
Now moles of Mg in 35 grams = 35 / 24 = 1.458 moles
so number of atoms in 35g = moles X Na
[Where Na = Avagadro's number = 6.023 X 10^23]
number of atoms of Magnesium in 35g
= 1.458 X 6.023 X 10^23 = 8.78 X 10^23 atoms
2) The reaction is
Mg(s) + 2HCl ---> MgCl2(aq) + H2(g)
So here one mole of Mg is reacting with two moles of HCl
The molar mass of Mg is 24 g/mol
so the mass of one mole of Mg will be 24g
The moles of Mg in 25 grams = 25 / 24 = 1.04 moles
similarly, Molar mass of HCl = 36.5 g / mol
So mass of one mole of HCl = 36.5 g
The moles of HCl in 20g = 20 / 36.5 = 0.548 moles
Here for one mole of Mg we need two moles of HCl so for 1.04 moles of Mg we will need 2.08 moles of HCl
However we are provided with just 0.548 moles of HCl, hence HCl is the limiting reagent.
0.548 moles of HCl will react with 0.548 /2 moles of Mg
the moles of Mg reacted = 0.274 moles
Moles of excess Mg left = 1.04 - 0.274 = 0.766 moles
Mass of Mg left = moles left X molar mass = 0.766 X 24 = 18.38 g