Correct answer is C.
$\begin{array}{l}
I_{1}=\frac{E}{r+R_{1}} \\
I_{2}=\frac{E}{r+R_{2}} \\
\frac{I_{1}}{I_{2}}=\frac{r+R_{2}}{r+R_{1}} \\
I_{1} r+I_{1} R_{1}=I_{2} r+I_{2} R_{2} \\
r\left(I_{1}-I_{2}\right)=I_{2} R_{2}-I_{1} R_{1} \\
r=\frac{I_{2} R_{2}-I_{1} R_{1}}{I_{1}-I_{2}}
\end{array}$