Between Mg and Zn which one is the anode and which one is the cathode?

And between Mg and Fe which one is the anode and which one is the cathode?
Please and thank you. im so stuck. :/

To determine which metal is the anode and which is the cathode, you need to compare their reduction potentials. The metal with the higher reduction potential will be the cathode, while the metal with the lower reduction potential will be the anode.

For the first comparison between Mg and Zn, you can look up their reduction potentials in a standard electrode potential table. The reduction potential of Mg is -2.37 volts, and the reduction potential of Zn is -0.76 volts. Since the reduction potential of Mg is more negative than that of Zn, Mg will be the anode and Zn will be the cathode.

For the second comparison between Mg and Fe, again, you can consult a standard electrode potential table. The reduction potential of Mg is -2.37 volts, and the reduction potential of Fe is -0.44 volts. Since the reduction potential of Mg is more negative than that of Fe, Mg will be the anode and Fe will be the cathode.

So, to summarize:
Mg vs. Zn: Mg is the anode, Zn is the cathode.
Mg vs. Fe: Mg is the anode, Fe is the cathode.