Let the balls meet at a height h from the ground. The dropped ball travels a height 200-h and the ball thrown vertically upward travels height h. Let t be the time at which they meet.
The height travelled by dropped ball
The height travelled by ball thrown vertically upward
Add (1) and (2)
200=40t
t = 5 sec
Substitute the value of t in equation (1) then