A current of 2A flows through 2Ω resistor when connected across a battery. The same battery supplies a current of 0.5A when connected across a 9Ω resistor. The internal resistance of the battery is