The time taken for the magnetic energy to reach 25% of its maximum value when a solenoid of resistance r and inductance L is connected to a battery is:

a) L/4r
b) 4L/r
c) L/2r
d) 2Lr