In captivity , goldfish can live for up to 20 years .
For common and comet varieties , each goldfish should have about 20 u of water .