If it's a standard hot end with a cartridge heater, you can just replace the 12V cartridge heater by a 24V one.
If not, then here are 3 options:
1. Power the whole printer from 12V instead of 24V.
2. Power the rest of the printer from 24V, but as a 12V power supply for the hot end heater and anything else that needs 12V.
3. Buy a 12V buck converter to generate a 12V supply from 24V.
For #2 and #3, connect your hot end heater between +12V and the E0- pin of the E0 heater terminal block.
What voltage does your bed heater need? If it is 12V only then you will need a 12V power supply to run it. Bed heaters need a lot of current, so using a buck converter to generate 12V for a bed heater doesn't make sense.