A person places his ear at the end of a long steel pipe. He hears two distinct sounds at an interval of 0.5 s when another person hammers at the other end of the pipe. If the speed of the sound in metal and air are 3630 ms−1 and 330 ms−1 respectively, then the distance between the two persons is