0.04moles and 0.02moles.
0.02 moles of [Co(NH3)5Br]Cl2 contain 0.04moles of Cl- ions and hence 0.04 moles of Y are formed on treatment with silver nitrate.
0.02moles of [Co(NH3Cl]SO4 contain 0.02 moles of SO42- ions and hence 0.02moles of Z are formed on treatment with barium chloride.