A wedge of mass M fitted with a spring of stiffness 'k' is kept on a smooth horizontal surface. A rod of mass m is kept on the wedge as shown in the figure. System is in equilibrium and at rest. Assuming that all surfaces are smooth, the potential energy stored in the spring is: