It's most likely caused by some kind of water quality problems, but you can't really know for sure without a test kit. However, a good first-aid when it comes to goldies, is to simply change a little bit more of the water and keep that up until the problems disappear

Fresh water is usually a really good solution in case there's too much waste build-up in the tank. The oranda will probably get well just with that treatment!

The moor on the other hand really doesn't look well :/ If you have a quarantine tank cycled and ready, I'd move him there and treat him with some anti-bacterial medicine. He looks like he's lost his sight on one eye (at least) and may have some infections going on in there. If you can get any, feed him with some medicated food as well, there are foods available that are treated with antibiotics. Follow the directions on the package!
Exactly how many fish do you have in that tank? Being a 40 gallon, there's a maximum of four goldfish fitting in there. You may need to upgrade/buy a separate tank for the sharks! If not, you'll probably have to struggle keeping the water quality good enough for everyone to stay healthy! One goldfish needs a minimum of 10 gallons, two need 20, three need 30, four need 40 and so on.
Good luck! I hope the fish will get healthy soon
