Isolate the r. Note the equal sign. What you do to one side, you do to the other.
Divide i from both sides
e/i = ir/i
r = e/i
r = e/i is your answer
hope this helps