When a block of mass $\mathrm{m}$ is suspended from the free end of a massless spring having force constant $\mathrm{k}$, its length increases by y. Now when the block is slightly pulled downwards and released, it starts executing S.H.M with amplitude $\mathrm{A}$ and angular frequency $\omega$. The total energy of the system comprising of the block and spring is $\ldots \ldots \ldots$
(A) $(1 / 2) \mathrm{m} \omega^{2} \mathrm{~A}^{2}$
(B) $(1 / 2) m \omega^{2} A^{2}+(1 / 2) \mathrm{ky}^{2}$
(C) $(1 / 2) \mathrm{ky}^{2}$
(D) $(1 / 2) m \omega^{2} A^{2}-(1 / 2) k y^{2}$