Kirchhoff's junction rule and multiloop circuits

Charge is conserved, so the current into a junction equals the current out, and together with one loop equation for each independent loop this solves any network of batteries and resistors.

From AP Physics C: Electricity and Magnetism.