consider the motion of the tennis ball in downward direction
Y = vertical displacement = 400 m
a = acceleration = acceleration due to gravity = 9.8 m/s²
v₀ = initial velocity of the ball at the top of building = 10 m/s
v = final velocity of the ball when it hits the ground = ?
using the kinematics equation
v² = v²₀ + 2 a Y
inserting the values
v² = 10² + 2 (9.8) (400)
v = 89.11 m/s