The recommendation for goldfish is 20g for the first and 10 additional for the second so as we can see your tank is overstocked. As soon as you can you need to get some water testing supplies. The liquid kind gives a more accurate reading. I believe petsmart has a coupon you can copy on their website and take to their store for aquarium pharmaceuticals brand which makes it much less expensive.
Since they are in a ten gallon tank, lets work with that

Goldfish are huge waste producers so they will need at least a 50% water change about twice a week to keep them healthy. Vacuum half the gravel at each water change to get the waste and any extra food that might fall to the bottom out. Keep us posted
Carol