Position Calculator:

Algebraic solution:
Blue ball ahead:
t < -5 or t > 15

Balls 30 m apart:
t = -8.23 or 0 or 10 or 18,23

  

Connect the animation, the algebraic solution and the graph. Check numerically!