oxidation reaction
In ---> In³⁺ + 3e ---1)
reduction reaction
Cd²⁺ + 2e ---> Cd ---2)
when balancing the reactions, electrons have to be balanced. to balance the electrons multiple 1st reaction by 2 and 2nd reaction by 3
1) x 2
2) x 3
2In ---> 2In³⁺ + 6e
3Cd²⁺ + 6e ---> 3Cd
add the 2 equations to obtain the overall reaction
2In + 3Cd²⁺ ---> 2In³⁺ + 3Cd