Step 1: Harmonic numbers
Closed pipe has odd harmonics only: 1, 3, 5, 7, so the third overtone is the 7th harmonic. Open pipe: 2, 3, 4 gives the 4th harmonic.
Step 2: Set equal
$7\cdot\frac{v}{4L_{c}}=4\cdot\frac{v}{2L_{o}}$
Step 3: Solve
$\frac{L_{c}}{L_{o}}=\frac{7}{4}\times\frac{1}{2}=\frac{7}{8}$, option (D).
Final Answer:
The lengths are in the ratio 7 to 8.
\[ \boxed{\text{(D) }\dfrac{7}{8}} \]