Set up the free-body diagram and the equations for Newton's 2 nd law for each object along each axis. Assume friction is present between all surfaces and the coefficient of friction is different between the different surfaces. (Note you should have 2 free body diagrams)