The Train was moving at constant speed, then it stopped for $12$ minutes. After Train started moving again the driver sped up by $20km/h$ and he made up for the lost time in $99km$ distance that was left, what was the speed of the train before it stopped moving?
That's how I tried it,
$99=(v+20)t$
I can't algebraically model this situation correctly, hint appreciated
$99 = (v+20)t$ is a fine start.
$v$ is the original speed. $v+20$ is the speed after it resumes its travel. $t$ is the time elapsed after resuming travel. And $99 km$ is the distance covered.
But how are you using the information that the train was stopped in the station for 12 minutes?
The average speed, including the 12 minutes wait time equals the original speed.
$\frac {99}{t+\frac {12}{60}} = v$
$\frac {12}{60}$ because we are measuring time in hours and not minutes.
Now you have two equation and two unknowns and can substitue from one equation to the other.
$$99 = vt + 20t\\ 99 = vt + 0.2v$$
Subtracting one from the other we get $v = 100 t$ and substituting. $$100t^2 + 20t - 99 = (10t - 9)(10 t + 11) = 0\\t = 0.9 \text {h},v = 90 \frac {\text {km}}{\text {h}}$$