From Zelda Wiki, the Zelda encyclopedia
The Rupee Course is encountered at various points across the Great Sea. Two barrels with flags will rise from beneath the waves, and Link must sail between them to begin the course. Barrels will rise and Link must sail across them, collecting the rupee floating above them, in order to make the next appear. First on the course come five(?) green rupees, then five blue, and finally five yellow.