To solve this problem we will apply the concepts related to the wavelength of its third harmonic.
It describes that the wavelength is equivalent to

Here,

The wavelength is in turn described as a function that depends on the change of the speed as a function of the frequency, that is to say

In this case the speed is equivalent to the speed of sound and the frequency was previously given, therefore


Finally the length of the pipe would be

