Answer
Energy is being supplied in battery 1.
Work Step by Step
In part (a) and part (b), we found that $i_1 = 4.0~A$ and the direction of this current is up.
The direction of the current is in the same direction as the emf $\mathscr{E}_1$
Therefore, energy is being supplied in battery 1.