The given diagram shows an electrochemical cell in which the respective half cells contain aqueous 1.0 M solutions of the salts XCl2 and YCl3. Given that,
Oxidation occurs at the electrode X which is the anode and it has negative polarity.
Anode: X→X+2+2e−
Cathode: Y3++3e−→Y
Here, the electron is flowing from X to Y.
Option D is correct.