If a current of 3 A passing through a circuit generates 36 W of power, what is the resistance of the circuit?