In a circuit with two loops sharing a resistor, each loop's voltages must add up (Kirchhoff's law), giving one linear equation per loop. Each equation is a line in the plane of possible currents, and the actual currents are where the two lines cross.