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