Given,
mass of block A,m=5kg
from Newton's 2nd law,
F=ma
10=5a
a=2m/s2
Because there is no friction force between A and B. when the block A moves , block B remains at rest in its position.
Take initial velocity of A,u=0
Distance to cover so that block B separate out, s=0.2m
So,S=ut+12at2
0.2=0+12×2×t2
t2=0.2
t=0.45sec