My problem is:
A car slows down at $-5.00~\text{m}/\text{s}^2$ until it comes to a stop after travelling $15.0~\text{m}$. How much time did it take to stop? (unit $= s$)
So this is how my school taught me to solve this: \begin{align*} t & = ?\\ a & = -5.00~\text{m}/~\text{s}^2\\ v_f & = 0\\ \delta x & = 15.0 \end{align*}
$$\delta x = v_f t - \frac{1}{2}at^2$$
(missing $v_i$)
I have tried to find time using distance over speed, but that answer is incorrect. Is there a way to solve this problem using the formula my school gave me (rearranging the formula using algebra), or is there another way? Thanks!

The equation $$\delta x = v_f t - \frac{1}{2}at^2$$ is a quadratic equation in $t$, which can be expressed in the form $$\frac{1}{2}at^2 - v_f t + \delta x = 0$$ so it could be solved by using the Quadratic Formula.
However, in this case, we know that $v_f = 0$. Hence, $$\delta x = -\frac{1}{2}at^2$$ Solving for $t$ yields \begin{align*} -2\delta x & = at^2\\ -\frac{2\delta x}{a} & = t^2\\ \sqrt{-\frac{2\delta x}{a}} & = |t|\\ \sqrt{-\frac{2\delta x}{a}} & = t && \text{since $t \geq 0$} \end{align*} You can now substitute $15.0~\text{m}$ for $\delta x$ and $-5.00~\dfrac{\text{m}}{\text{s}^2}$ for $a$ to solve for $t$.