Correct option is B
Given
Length of train = 500m
Speed = 100 m/s
Time taken to cross the tunnel = 10 sec.
Distance = Speed × Time
Let the length of tunnel be x meter
Then, the total distance = x + 500
According to the question,
x + 500 = 100 × 10
x = 1000 - 500 = 500