v1=25m/s,v2=−15m/s,T=5s.
The coordinates of the first ball and the second balls after t seconds are
y1(t)=v1t−2gt2,y2(t)=v2t−2gt2,
respectively, where g=9.8m/s2 is the acceleration of gravity and the positive direction of the Y axis is upward. The distance between the balls after t=T is
S=∣y1(T)−y2(T)∣=(v1−v2)T=200m.
The velocities of the balls are
u1=v1−gT=−24sm,u2=v2−gT=−24sm,
The sign "minus" means that the both velocities are directed downward.