A man of mass m walks from end A to the other end B of a plank of mass M and length l