Concept:The time period T of a simple pendulum depends on its length L and gravity g as T=2πL/g.For fixed g, the time period is proportional to the square root of the length: T∝L.Explanation:The initial length L1=30 cm.Number of oscillations N1=20 in total time t=10 s.So initial time period T1=t/N1=10/20=0.5 s.The final number of oscillations N2=40 in the same time t=10 s.So final time period T2=t/N2=10/40=0.25 s.Since L∝T2, we have L2/L1=(T2/T1)2.Substitute values: L2/30=(0.25/0.5)2=(1/2)2=1/4.Thus L2=30×(1/4)=7.5 cm.Answer:The required length is 7.5 cm, corresponding to option (B).