A battery of emf E and internal resistance, r, when connected an external resistance of 12 Q produces a current of 0.5 A

A battery of emf E and internal resistance, r, when connected an external resistance of 12 Q produces a current of 0.5 A. When connected across a resistance of 25 £1, it produces a current of 0.25 A. Determine (i) the emf and (ii) the internal resistance of the cell.