
When the cells are connected in series is=2r+R2ϵ=2r+22ϵ

When they are connected in parallel, the emf is ϵp=r1+r1rϵ+rϵ=ϵ and the effective internal resistance will be rp=r+rr×r=2r. Therefore, the current will be,
ip=R+2rϵ=2+2rϵ=4+r2ϵ
Since, is=ip⇒2r+22ϵ=4+r2ϵ⇒r=2Ω