a block of mass M is placed on a smooth inclined plane of inclination

with horizontal the inclined plane is accelerated horizontally so that the block does not sslide down
1)What should be the acceleration of inclined plane Ans g cos

2)What vertical force is exerted by inclined plane on block Ans mg
Please give me a detailed solution i promise to rate you