Hello,
The LM317 and LM338 are rated for a maximum differential voltage of 40VDC. Your 36VAC transformer will have a no load DC output of about 51VDC.
As you've already found, this is far too high for the LM317/LM338. Off hand, I can't think of any linear voltage regulators that can handle 51VDC. Also, a quick Ebay search didn't turn up any pre-assembled modules that can handle this voltage.
A simple solution would be to use resistors to make a voltage divider to drop the transformer voltage. This solution has several problems. This worst is that it would generate a lot of heat. Your power supply would now be an electric heater. Also, power resistors are fairly expensive.
Unfortunately, the only practical solution that I can think of is to just replace the transformer. An 18VAC 40VA transformer should work. This would give you about 20VDC output at the 1.5A maximum current that your LM317 modules can provide. Transformers are fairly expensive. A cheaper solution would be to use an external 24VDC power supply to provide power to your power supply.
A transformer is about $20-$25. A 24V 3A power brick type external supply is about $10-$15.
Some Ebay search links:
Replacement transformer: (If you can find one that will fit inside your power supply case)
https://www.ebay.com/sch/i.html?_odkw=18v++transformer&_sop=15&_osacat=0&_from=R40&_trksid=m570.l1313&_nkw=18v+40va+transformer&_sacat=0Power brick:
https://www.ebay.com/itm/ABI-24V-3A-AC-Adapter-Power-Supply-Driver-for-24V-LED-Strip-Light/361306136292?epid=1258644087&hash=item541f861ee4:g:laYAAOSwXMBakX1WUnfortunately you're now getting to the place where the only parts left of your power supplies are the case and meters.
I don't know what your budget is for this. I also work for a school system so I should say lack of budget!
Add up the cost of the LM317 module, a replacement transformer or power brick and your time to do the modifications.
If you ignore the insanely over-priced education lab equipment suppliers, you can get a brand new cheap Chinese generic bench power supply for about $60. Do some research on this message board if you decide to buy a generic bench power supply. Some are good and others are of very poor quality.
Here is what I found with a quick Ebay search:
New PS:
https://www.ebay.com/itm/30V-3A-110V-220V-Adjustable-DC-Power-Supply-Variable-Digital-Lab-Grade-Bench/202172867223?epid=2025936273&hash=item2f12712297:g:1hcAAOSwCcZaK08n