The equipment you want to power is a medical equipment, not a toy. I would not use anything but what is provided with said equipment.
Your mentioning of "24V" makes me think that you are looking for power adapter for that CPAP. Again - don't risk your life with homemade stuff!