You have correctly calculated the first part of the question, assuming you are doing this question with simple algebra [SUVAT] it will work approximately as follows:
If M=25 and F=400, this means F=M*A, and A=16. With gravity NetA=16-9.81=6.19
We know D=U*T+0.5*A*(T^2), which means...