(b) $U = \frac{1}{2}Fl = \frac{F^{2}L}{2AY}.\ U \propto \frac{L}{r^{2}}\ \lbrack F$ and $Y$ are constant]
$\therefore\frac{U_{A}}{U_{B}} = \left( \frac{L_{A}}{L_{B}} \right) \times \left( \frac{r_{B}}{r_{A}} \right)^{2} = (3) \times \left( \frac{1}{2} \right)^{2} = \frac{3}{4}$