A mass of 10 kg in on incline joined to a cable over a pulley and then is fastened to a suspending mass of 30 kg. When the coefficient of friction among the 10 kg mass and the table is 0.2, determine the acceleration of each mass and the tension in the cable.