==> Path Difference ($\Delta x$) = ${S_1}M - {S_2}M = 0$.
$(1)$
Finally when the box is rotated
Path Difference $ = {S_1}M'\, - {S_2}M'$ ==> $\Delta x = 5 - 3 = 2m$
$(2)$
For maxima
Path Difference = (Even multiple)$\frac{\lambda }{2}$
==> $\Delta x = (2n)\frac{\lambda }{2}$
For $5$ maximum responses
==> $2 = 2(5)\frac{\lambda }{2}$
==> $\lambda = \frac{2}{5} = 0.4m$.