In the given figure find the velocity of the block M, if both the rope ends are pulled with a velocity v.