Hint: Motion under gravity.
in motion under gravity, if a body is released or dropped, that means its initial velocity is zero. Both balls are freeely falling. Hence, there is no acceleration of one with respect to another.
Therefore, relative speed remains constant (=40m/s)
Final answer:
=40m/s