Concept:
The frequency of the first overtone for a closed pipe is $f_c = \frac{3v_1}{4L_1}$, and for an open pipe, it is $f_o = \frac{v_2}{L_2}$.
Step 1: Set the frequencies equal.
Given $f_{closed} = f_{open}$:
$$\frac{3v_1}{4L_1} = \frac{v_2}{L_2} \implies L_2 = \frac{4L_1v_2}{3v_1} \text{ }$$
Step 2: Relate velocity to density.
According to Laplace's correction, $v = \sqrt{\frac{\gamma P}{\rho$. Since both are diatomic gases ($\gamma$ same) and compressibilities are same, we use the density relation:
$$\frac{v_2}{v_1} = \sqrt{\frac{\rho_1}{\rho_2 \text{ }$$
Step 3: Substitute to find $L_2$.
$$L_2 = \frac{4L_1}{3}\sqrt{\frac{\rho_1}{\rho_2 \text{ }$$