If possible, you want to see if you have the markings on the TO-220 Pkg in the working chair.
If not, you can use a volt meter, to read the pins of the device that is NOT damaged,
(Download the data sheet on-line, if you're pretty sure you've got a 7824 (positive 24V regulator), or 7924...