Answer:
The answer is

Step-by-step explanation:
If the ball is thrown vertically, the equation of its position is

So setting our coordinate system in the position of throwing
, the equation for A is

and for B

where
due to the delay of the throwing between A and B, "t"
.
Now, the balls passing each other means that

then

cancelling some terms...

so
