time $t$ is measured in seconds starting when the first car brakes. and the distance is also measured with the origin where the second car is at the the breake was applied.
$$x_f = 54 + 24(t-2), x_s = 44 + 30(t-2) - \frac{1}{2}a(t-2)^2$$ where $x_f, x_s$ represent the position at $t$ if the first and second car respectively.
setting them equal, the quadratic equation for $$a(t-2)^2 - 12(t-2) + 20 = 0.$$ we need the discriminant equals zero for a double root. which gives $a = \dfrac{9}{5}.$
so the least uniform retardation needed to avoid collision is $\dfrac95.$