You are given the value of the force F from t=0 to t=6. So, you can find the acceleration for t=0 to t=3, then t=3 to t=5, then t=5 to t=6. Using the equations of motion in the x-direction, you can find the velocity at the end of t=3 (which will be the velocity at the beginning of t=3 to t=5), t=5 and then finally t=6.