Block

figure

A block of mass M is pulled along a horizontal frictionless surface
by a rope of mass m. A horizontal force \vec{P} is applied to one
end of the rope. Assuming that the sag in the rope is negligible,

a) Find the acceleration of rope and block

b) Find the force that the rope exerts on the block.