With respect to 2kg block, 1kg block is moving in backward direction at velocity of,
vr=2−8=−6m/s
frictional force on 1kg block, in the forward direction is, f=μN=0.4×1kg×10m/s2=4N
So, acceleration of 1kg block in ground's frame is, a1=f/1kg=4ms−2, in the forward direction.
Similar frictional force applies on 2kg block in the backward direction.
So, deceleration of 2kg block is, a2=f/2kg=2m/s2, in the backward direction.
With respect to 2kg block, there is pseudo force of 1kg×a2=2N, on 1kg block, in the forward direction.
So, acceleration of 1kg block with respect to 2kg block is, ar=(4N+2N)/1kg=6m/s2, in the forward direction.
So time taken to stop relative motion is, t=vr/ar=6ms−1/6ms−2=1s
Now, displacement of 1kg block and 2kg block are given as,
s1=2t+12a1t2
s2=8t−12a2t2
At t=1s,
s1=4m
s2=7m