Power delivered to head lamp = V2R\frac{V_2}{R}RV2
= 40W
R = V240\frac{V_2}{40}40V2
= 12×240\frac{12 \times 2}{40}4012×2
= 3.6Ω