Speed of sound:v=√Bρ=√1Kρ (compressibility K=1B)
For closed pipe f1=3v4L=34L√1K1ρ1
Let the length of the open pipe be L2.
For open pipe f2=2v2L2=1L2√1K2ρ2
from the question, f1=f2
34L√1K1ρ1=1L2√1K2ρ2
⇒34L√ρ2ρ1=1L2
⇒L2=4L3√ρ1ρ2
Now, comparing with given equation: x3L√ρ1ρ2=4L3√ρ1ρ2
We get, x=4