In the library there is a bookshelf with the answer you're looking for, it's in town! Otherwise you can go into the titlescreen -> options -> general -> guide to find an area with answers regarding more challenging parts of the game, it'll have the solution for both fountain puzzles there!