In the arrangement shown in Fig. $12.17$, gas is thermally insulated. An ideal gas is filled in the cylinder having pressure $P$ greater than atmospheric pressure $P_{0}$. The spring of force constant $K$ is initially upstretched. The piston of mass $m$ and area s is frictionless. In equilibrium, the piston rises up a distance $x_{0}$, then
(A) Final pressure of the gas is $P_{0}+\frac{K x_{0}}{s}+\frac{m g}{s}$.
(B) Work done by the gas is $\frac{1}{2} K x_{0}^{2}+m g x_{0}$.
(C) Decrease in internal energy of the gas is $\frac{1}{2} K x_{0}^{2}+m g x_{0}+P_{0} s x_{0}$
(D) All of the above.