Yeah, sorry, I didn't write the formula correctly that was given in this exercise.. I edited the OP.
distance= z + b*time + x*(time^2) + y*(time^3)
z is some distance
b is starting speed
I have really bad English when it comes to terminology, so I hope you can understand now.