Be aware, though. In your specific circuit, just ignore the right side power supply (remove it.) Then you find that the voltage across the 12 Ohm resistor is
12/(12+4+2)*45=30
. So there will be no current through the 30 V supply.