I'm a high school student, and I have come across a problem that I cannot solve. I feel there must be something obvious that I'm not seeing.
Problem: The distance between two train stations is $96$ km. One train covers this distance in $40$ minutes less time than another one. The second train is $12$ km/h faster than the first one. Find both trains' speeds.
What I have done: Set $v_1+12 = v_2$ (the speed of train $2$ is $12$km/h more than speed of train $2$), and $96/(v_1) = (96/v_2)-40$ (the time it takes for train 2 to transverse the distance between the stations is $40$ minutes less than the required by train $2$) Now, from here I get to: $v_1 = v_2-12$.
\begin{align} &\frac{96}{v_2-12} = \frac{96}{v_2}-40 \\ &\qquad\implies \frac{96}{v_2-12} = \frac{96-40v_2}{v_2} \\ &\qquad\implies v_2\cdot 96 = (v_2-12)\cdot (96-40v_2) \\ &\qquad\implies v_2\cdot 96 = v_2\cdot 96-40v_2^2-1152-380v_2 \\ &\qquad\implies 0 = -40v_2^2-380v_2-1152 \end{align}
Solving this quadratic equation yields no real roots.
Could you please suggest the right way to go?