In the given circuit, a battery of emf E, a resistance $$R$$ and inductance coil $$L_1$$ and $$L_2$$ and switch $$S$$ are connected as shown in figure, initially the switch is open.
$$LaTeX$$ enrgyincoils = total energy stored in coils.