E=I(R+r) solve for R
divide I from both sides then subtract r from both sides, too so in the end:R= (E-r)/I
E÷I =R+rR=(E÷I) - r