In a potentiometer experiment, it is found that no current passes through the galvanometer when the terminals of the cell are connected across 52 cm of the potentiometer wire. If the cell is shunted by resistance of $5 \Omega$, a balance is found when the cell is connected across 40 cm of the wire. Find the internal resistance of the cell.