Top Rails

I have an 18 foot by 52 inch pool and the rails are rusting away. Can’t seem to find a proper replacement. I believe that the manufacturer, who I can’t really remember is out of business. The rails are 57 1/2 inch on the outside and 55 inch on the people inside. I am posting a couple of pictures. The pool is around 29 years old. Any help would be appreciated!