The given chemical equation is
![2AgNO_3+BaCl_2\to2AgCl+Ba(NO_3)_2](https://img.qammunity.org/2023/formulas/chemistry/college/hwbn4sxi7bezzrp771mzymfl19ism0ie2k.png)
According to the equation, the stoichiometry ratio between AgNO3 and AgCl is 1:1, that is, 1 mole of AgNO3 produces 1 mole of AgCl.
So, use the molar mass of AgNO3 to find the number of moles used in the reaction. (The molar mass of silver nitrate is 169.87 g/mol.
![\text{Moles of }AgNO_3\colon5.0g\cdot(1mol)/(169.87g)=0.029mol](https://img.qammunity.org/2023/formulas/chemistry/college/f3b6khkidtbs5id517gym3boad5dqapeyk.png)
There are 0.029 moles of AgNO3. Given that the ratio is 1:1, there are produced 0.029 moles of Silver Chloride.