Answer
$r=\dfrac{E-IR}{I}$
Work Step by Step
Using the properties of equality, in terms of $
r
,$ the given equation, $
I=\dfrac{E}{R+r}
,$ is equivalent to
\begin{array}{l}
I(R+r)=E
\\\\
IR+Ir=E
\\\\
Ir=E-IR
\\\\
r=\dfrac{E-IR}{I}
.\end{array}