Wow! That is horrible, I'm glad you're trying to help them! The first thing I would do is a partial water change, maybe start with 10-20% and just continue these water changes daily until you can get the water parameters in good shape (0 ammonia, 0 nitrite, 5-20 nitrate) this could take a while...