No, that's not right.
Since we are not particularly interested in the time, we can use
v2 = vi2 + 2 a (x - xi)
one of our "Big Three Kinematics Equations" which will come in very, very handy as we study motion.
Try it again.
(c) 2000, Doug Davis; all rights reserved.