m1=2 kg, m2=8 kg, μ=0.3, F=10 N.

For m1:

m1•g=N,

m1•a1=F-F(fr) = F- μ•N=F- μ•m1•g.

a1=F/m1 - μ•g = 10/2 -0.3•9.8 = 2.06 m/s²

For m2:

m2•a2=F(fr)

a2=F(fr)/m2= μ•m1•g/m2 = 0.3•2•9.8/8 = 0.735 m/s².

Distances

x1=a1•t²/2,

x2=a2•t²/2,

x1=x2+L,

a1•t²/2 = a2•t²/2 + L,

Solve for t

t=2.13 s.

x2=a2•t²/2= 1.67 m