Answer: hello your question is incomplete attached below is the complete question
answer : 1/2 KD^2 ( option A )
Step-by-step explanation:
P.E ( potential energy ) = mgd
In case 1 P.E = 0 i.e. mgd = 0
Given that in case 2 the Mass M had moved through the Distance D by the compression of the spring
The potential energy of the M in case 2
= P.E of M at rest + P.E of the spring
= 0 + 1/2 KD^2