A block of mass m can slide freely in a slot made in a bigger blocks of mass M as shown in figure. Their is no friction anywhere in the system