It is quite possible that two goldfish are producing too much ammonia for the filter to be able to convert it all.
My suggestion would be to return the goldfish to the pet store. Let them know that they had been in a too-small tank, and that you just want credit for more appropriate fish. A
betta would do okay in a 2.5 gallon (not great, but much better than goldfish would), and the bright colors might appeal to a child.
One other thing you could do is check craigslist. You can usually find small tanks for very cheap. If you can get a 10g tank, you can probably use some of the equipment from the 2.5 (if the 10g doesn't come with stuff, as they often do). You could stock it with white cloud mountain minnows, which come in a couple of different varieties, and which don't require a heater (the most expensive piece of equipment for many tanks).
Good luck and let us know if you have any other questions.
