N1=mg
N2=(m+m)g
a1=-μ/2 N1/m
=-μg/2
a2=(μN1/2 -μN2)/M
=(μmg/2 -μ(m+m)g)/M
initial velocity of smaller block with respect to biggere =v-v =0
acceleration of smaller block w.r.t bigger = a1-a2
so smaller block sepeate
S=l =0*t +1/2 (a1-a2) t2
t2 =2l/(a1-a2)