As shown in the 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 m s-2
Acceleration of m with respect M is 2 ms-2
Acceleration of m with respect to ground is 10 m s-2
If acceleration of M is 2 m s-2, then acceleration of m w.r.t. M will be 2 ms-2
a→m=a→m/M+a→M
Acceleration of m w.r.t. ground
am=22+22+2×2×2cos180−37∘=8/5ms−2