Q. A block of mass $M$ slides on a frictionless surface with an initial speed of $v_{0}$. On top of block is a small box of mass $m$. The coefficients of friction between box and block are $\mu_{s}$ and $\mu_{k}$. The sliding block encounters an ideal spring with force constant $k$. Answer following questions.
image
Assuming no relative motion between box and block what is the maximum possible acceleration of block and box at the instant of maximum compression?

Work, Energy and Power Report Error

Solution:

$\left(\frac{1}{2} M+m\right) v_{0}^{2}=\frac{1}{2} k x_{m}^{2}$
$k x_{m}=\mu_{s} g$
$x_{m}=\mu_{s} k$
$(m+M) v_{0}^{2}=\frac{k \mu_{s}^{2} g^{2}}{k}$
$k=\left(\frac{\mu_{s} g}{v_{0}}\right)^{2}(M+m)$