You need the basic equation of motion for an object:
In other words, in each coordinate direction, the sum of forces on an object is equal to the mass of the object times acceleration (i.e. second derivative of x with respect to t). Integrate twice to get x(t), evaluate the initial conditions from the problem statement, then solve from there.