I have a problem to solve and I got stuckstack. The question is: Having a vehicle that weighs $m$ that can move at variable speed but with maximum acceleration of $a_1$ and minimum deceleration of $a_2$ calculate the minimum time to cover distance $\ell$. The starting and ending speed should be zero.
I need some pointers or a link, please and thank you.