".....the ball reappears at the bottom of the window 2 seconds after passing the bottom on its way down ,find the height of the building ..."
See this one..
say a ball with u=20 m/s falls from x m in 1 s time...so
v=u + at
v= 30 m/s
"........the ball rebounds with the same speed with which it hits the floor ......."
So,
u=30 m/s
v=0
so t will be 3 s
SO the time is not coming equal when the ball rebounds
PLease tell where is my mistake