Let be the current from E1 towards R1
and be the current from E2 towards R2
Use Kirchhoff's loop law
For the loop of potential E1
For loop of E2
two equations and two unknowns....
I hope this one is clear than the one I told you there... :-)