Answer: B. B is correct. The first overtone of a closed pipe is its third harmonic, 3v/(4L_c). The third harmonic of an open pipe is 3v/(2L_o). Setting them equal, the 3v cancels on both sides and leaves 4L_c = 2L_o, so L_c = L_o/2 = 30/2 = 15 cm. A closed pipe is always half the length of the open pipe that shares a harmonic with it in this way (NCERT Class 11 Physics Chapter 14, pages 289–290).
Why A is wrong: A (10 cm) results from taking the closed pipe's first overtone as its second harmonic, 2v/(4L_c), as for an open pipe. A closed pipe has only odd harmonics, so its first overtone is 3v/(4L_c).
Why C is wrong: C (25 cm) has no clean algebraic origin from these formulas — likely an arithmetic slip.
Why D is wrong: D (45 cm) results from matching the closed pipe's first overtone to the open pipe's fundamental, v/(2L_o), instead of its third harmonic: 3v/(4L_c) = v/(2L_o) gives L_c = 3L_o/2 = 45 cm.