A 24 V battery is connected in series with a resistor and an inductor, with $R=8.0 \Omega$ and $L=4.0 \mathrm{H}$ , respectively. Find the energy stored in the inductor (a) when the current reaches its maximum value and (b) one time constant after the switch is closed.