My maths is unreliable but I make
(50/415)*240 = 28.8V
If I'm right a 24V bulb will burn hot and bright, and not last long. The extra heat may not be good for the lamp-holder either.
How many watts is the bulb?
A 24V 21W brake lamp draws 1.14A, so a resistor to drop the 28.8V to 24V would be 4.8/1.14 = 4.2 ohms rated for at least 5.5W. Two 2.2ohm 5W resistors in series would do the job.
One thing to watch is the current the transformer can supply. If the original 50V bulb was 100W, then the transformer can do 2A. Four amps would be needed to get 100W of light out of a 24V bulb. So rather than using a filament, it might be wise to go for a LED and drive it with an ebay adjustable regulator module. I'd probably disconnect the transformer and fit a LED lamp and power supply that suited it.
Dave
Edited By SillyOldDuffer on 14/02/2023 20:33:52