A battery of emf 10 V and internal resistance 3 ohm is connected to a resistor. If the current in the circuit is 0.5 A, find :

A battery of emf 10 V and internal resistance 3 ohm is connected to a resistor. If the current in the circuit is 0.5 A, find :
(i) the resistance of the resistor;
(ii) the terminal voltage of the battery.