let a1 be the accln of the m relative a , down the incline , therefore its horizantal componenet is a1cos
,therefore its original accln in the horizantal directn =a1cos60 - a now let N be the normal reaction of m on M therefore we get the eqn
Nsin
= Ma = m(a1cos60 - a)
sust the value we get 2(m+M)a/m
sorry unable to attach diagram