1. If you know the current and the time, you can calculate the charge in coulombs.
2.Once you know the charge in coulombs, you know how many electrons were involved in the reaction
3. When you know the number of moles of electrons and you know the half-reaction for the metal, you can find out how many moles of metal plated out.
4. Once you know the number of moles of meta, you can use what you know from stoichiometry to calculate the number of grams of metal.