Explanation:
It took [tex]t_1 =1.5\:\text{s}[/tex] for the sound to reach the 1st wall and at the same time time, the same sound took [tex]t_2 = 2.5\:\text{s}[/tex] to reach the 2nd wall. Assuming that the sound travels at 343 m/s, then let [tex]x_1[/tex] be the distance of the person to the 1st wall and [tex]x_2[/tex] be the distance to the 2nd wall. So the distance between the walls X is
[tex]X = x_1 + x_2 = v_st_1 + v_st_2 = v_s(t_1 + t_2)[/tex]
[tex]\:\:\:\:\:= (343\:\text{m/s})(4.0\:\text{s}) = 1372\:\text{m}[/tex]