The concept required to solve this problem is related to the wavelength.
The wavelength can be defined as the distance between two positive crests of a wave.
The waves are in phase, then the first distance is
[tex]\Delta x_1 = 20cm[/tex]
And out of the phase when
[tex]\Delta x_2 = 30cm[/tex]
Thus the wavelength is
[tex]\Delta x_2-\Delta x_1 = \frac{\lambda}{2}[/tex]
Here,
[tex]\lambda =[/tex] Wavelength
If we rearrange the equation to find it, we will have
[tex]\lambda = 2 (\Delta x_2-\Delta x_1 )[/tex]
[tex]\lambda= 2(30-20)[/tex]
[tex]\lambda = 20cm[/tex]
Therefore the wavelength of the sound is 20cm.