The bulb and the lamp

St. Albans maths puzzle The bulb and the lamp