解:对物块:F1-μmg=ma1,6-0.5×1×10=1·a1,a1=1.0m/s2,s1=(1/2)a1t2=(1/2)×1×0.42=0.08m,v1=a1t=1×0.4=0.4 m/s,对小车:F2-μmg=Ma2,9-0.5×1×10=2a2,a2=2.0m/s2,s2=(1/2)a2t2=(1/2)×2×0.42=0.16m,v2=a2t=2×0.4=0.8m/s,撤去两力后,动量守恒,有Mv2-mv1=(M+m)v,v=0.4m/s(向右),∵((1/2)m+(1/2)M)-(1/2)(m+M)v2=μmgs3,s3=0.096 m,∴l=s1+s2+s3=0.336 m.