
In this question we have to find the Terminal potential difference of second cell, we are given the internal resistances of both the cells and an external resistance. Applying the following expression:-
V=E−ir2
⇒0=E−ir2
Applying the expression of current
0=E−(r1+r2+R2E)⋅r2
⇒R=r2−r1
