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