Answer: B. B is correct. At balance, R/X = l/(100 − l), so X = R(100 − l)/l = 10 × 60/40 = 15 Ω. NCERT: “We can easily get the balance condition, such that there is no current through G.” (NCERT Class 12 Physics Part I, Chapter 3, page 100).
Why A is wrong: A is wrong because 10 × 40/60 = 6.7 Ω inverts the ratio; the unknown sits in the right gap of length (100 − l).
Why C is wrong: C is wrong because 10 × 100/40 = 25 Ω uses the full wire length in place of the right-gap length (100 − l = 60 cm).
Why D is wrong: D is wrong because 10 × 40/100 = 4 Ω uses l/100, which is the fraction of the wire, not the ratio of the two gap lengths.