As the switch S is closed in the circuit as shown in figure, current passed through it is
4.5 A
Let V be the potential of the junction as shown in figure.
Applying junction law, we have
20−V2+4−V4=V−02
40–2V+4–V=2V
5V=44 ⇒ V≈9 V
i=V2=4.5 A