A monkey of mass m climbs a rope slung over a light frictionless pulley.The opposite end of the rope is tied to a block of Mass M lying on a smooth horizontal plane.Find the acceleration of the block and tension in the rope in the following cases
1)the monkey moves up with an acceleration ''a" relative to the rope.
2)the monkey moves downward with an acceleration ''b" relative to the rope.