In a galvanic cell the metal with the lower standard potential E0 loses electrons (anode) and the other gains them (cathode). The cell voltage is E0 of the cathode minus E0 of the anode, corrected for concentrations by the Nernst equation. In electrolysis a current I for a time t carries a charge I t, and Faraday law turns it into the mass of metal plated. R = 8.314462618 J/(mol K) and F = 96485.33212 C/mol (NIST CODATA 2018). The E0 values are textbook two-decimal numbers (periodictablex.com and LibreTexts agree to about 0.02 V; Fe and Ni, Mg and Al differ slightly between books): use your own book values for homework. Molar masses are IUPAC values (ciaaw.org). Ideal solutions are assumed (concentration instead of activity).
Choose a law, choose what you want to find, type the numbers you know and press Solve. You get the formula, the substitution and the result with units, then a picture drawn with your numbers. Energies in eV, wavelengths in nm unless the label says metres.
Your browser could not start a 3D context. Try a recent Chrome, Firefox, Safari or Edge with hardware acceleration on.