That's how I solved for the velocity. Energy is conserved. You can use momentum too. The rest is kinamatics equation. I know the final speed, and the initial speed, the acceleration and from that I can find the time.