Let say the basket ball is tossed upwards with initial speed "v"
now when it moves up in the air its speed will decrease due to acceleration of gravity in opposite direction
So here we can say that its final speed at the top position will be zero
here it will take t = 2.5 s to reach the top
now we can use equation of kinematics
[tex]v_f = v_i + at[/tex]
[tex]0 = v + (-9.8)*2.5[/tex]
now we have
[tex]v = 9.8 * 2.5[/tex]
[tex]v = 24.5 m/s[/tex]
so the ball is tossed up initially with speed 24.5 m/s