24V Derivation

Are you at all concerned about efficiency? A linear regulator would give you a cheap solution but all the power corresponding to the voltage drop would be lost as heat - going from 24V to 5V means you'd only have a 20% efficiency. If you want something more efficient, look for a buck converter.