let the required time be t.
For freely falling body we have,
S1=12gt2
=12×10×t2
=5t2
For body thrown downward with 1m/s,
S2=ut+12gt2
=1×t+12×10×t2
=t+5t2
Now S2−S1=18
t=18s