According to the given figure, and free body diagram
masses of two bodies m1=2kgm2=8kg ,Acceleration of mass m1=aAcceleration of mass m2=2aTension =TDistance between m2 and ground =20cm=0.2mInitial velocity u=0Equation of motion of 2kg block, ∴T−2g=2a⋅⋅⋅⋅⋅⋅⋅(i)Equation of motion of 8kg block, and 8g−2T=82a⇒4g−T=2a⋅⋅⋅⋅⋅⋅⋅(ii)From Eqs. (i) and (ii), ⇒T−2g=4g−TSubstituting the value in Eq. (i) we get3g−2g=2a⇒g=2a⇒a=2g=5ms−2∴a1=5ms−2anda2=25ms−2Since,s=ut+21at2∴10020=0+2125×t2⇒t2=5×10020×4⇒t=52=0.4s