Cool 24v to 12v dc buck converter I found online. It simply consists of
1.LM317T
2. (2) 1N4002 diodes
3. 24v DC Power supply
4. 0.1uF capacitor
5. 1.0 uF capacitor
6. 240 ohm resistor
7. 2.1k resistor
https://circuits-diy.com/top-three-24v-to-12v-dc-to-dc-converter-circuits/