As shown in figure, if acceleration of M with respect to ground is 2 ms-2, then
Acceleration of m with respect to M is 5 ms-2
Acceleration of m with respect to ground is 5 ms-2
Acceleration of m with respect M is 2 ms-2
Acceleration of m with respect to ground is 10 ms-2
If acceleration of M is 2 ms-2, then acceleration of m w.r.t. M will be 2 ms-2
Acceleration of m w.r.t. ground
am=22+22+2×2×2cos180−37∘=8/5 ms−2