Let the height where we are trapped is H
now to find the time to reach the key at the bottom is given as

now we have


now if the speed of sound is considered to be 340 m/s then time taken by the sound to reach at the top is given as

now the total time is given as

now by solving above equation we have
H = 48 m
now height of one floor is 3 m
so our position must be
