Total number of atoms in the sample is the sum of number of atoms of all the elements present in the sample.
Number of gold, [tex]Au[/tex] atoms in [tex]KAu(CN)_2[/tex] = [tex]6.66\times 10^{20}[/tex] atoms (given)
From the formula of compound that is [tex]KAu(CN)_2[/tex] it is clear that the number of potassium and gold are same whereas those of carbon and nitrogen are 2 times of them.
So, the number of atoms of each element is:
Number of potassium, [tex]K[/tex] atoms in [tex]KAu(CN)_2[/tex] = [tex]6.66\times 10^{20}[/tex] atoms
Number of carbon, [tex]C[/tex] atoms in [tex]KAu(CN)_2[/tex] = [tex]2\times6.66\times 10^{20}[/tex] atoms = [tex]13.32\times 10^{20}[/tex]
Number of nitrogen, [tex]N[/tex] atoms in [tex]KAu(CN)_2[/tex] = [tex]2\times6.66\times 10^{20}[/tex] atoms = [tex]13.32\times 10^{20}[/tex]
Total number of atoms in [tex]KAu(CN)_2[/tex] = Number of gold, [tex]Au[/tex] atoms+Number of potassium, [tex]K[/tex] atoms +Number of carbon, [tex]C[/tex] atoms + Number of nitrogen, [tex]N[/tex] atoms
Total number of atoms in [tex]KAu(CN)_2[/tex] = [tex]6.66\times 10^{20}+6.66\times 10^{20}+13.32\times 10^{20}+13.32\times 10^{20}[/tex]
Total number of atoms in [tex]KAu(CN)_2[/tex] = [tex]39.96\times 10^{20}[/tex] atoms
Hence, the total number of atoms in [tex]KAu(CN)_2[/tex] is [tex]3.996\times 10^{21}[/tex] atoms.