Based on the concise information you have provided here, it appears as if your fish were exposed to some sort of parasites/ fungus. In order for you to apply the appropriate treatment you need to know how to detect fish diseases and interventions, based on behavior, location of unusual spots etc. I recommend that you do some online research immediately. There are lots of information out there. Good luck!