To determine the number of moles Ag+ and Cl-, we need to know the moles of AgCl that is produced from the process. We are given the mass of the AgCl, to convert to moles we use the molar mass which is equal to 143.32 g / mol. The from the dissociation equation of the salt, we relate the ions. We do as follows:
Moles AgCl = 4.074 g AgCl ( 1 mol / 143.32 g ) = 0.02843 mol AgCl
In solution, the dissociation equation of the salt would be
AgCl = Ag+ + Cl-
Therefore,
Moles AgCl = moles Ag+ = moles Cl- = 0.02843 moles
The number of moles silver ions and chloride ions would be 0.02843 moles each.