A straight wire of total length 40cm passes through a rectangular region where a uniform magnetic field exists only over the central 10cm segment. The current in the wire is perpendicular to the field. Which length should be substituted for L while calculating the magnetic force on the wire?
a) 40cm
b) 20cm
c) 10cm
d) 30cm