A battery of emf 10V and internal resistance 3Ω is connected to a resistor. The current in the circuit is 0.5A.what is the resistance of the resistor?