It took for the sound to reach the 1st wall and at the same time time, the same sound took to reach the 2nd wall. Assuming that the sound travels at 343 m/s, then let be the distance of the person to the 1st wall and be the distance to the 2nd wall. So the distance between the walls X is