Magic Library/Exploration

Unit EXP Guide
In order to gain the maximum amount of experience points possible, you must win all monster encounters available until obtaining a certain amount of Gil from each of the two zones. You can open the menu to keep track of the amount of gil you obtained from the dungeon. Because the amount of Gil you can collect is predetermined, it will indicate your progress in defeating all available monster encounters.

If you want to clear the map completely:
 * Stay in ZONE 1 until you have 3,999 Gil.
 * Proceed to and stay in ZONE 2 until you have 10,279 Gil.
 * Defeat the boss. And you should have 10,519 Gil.

You should conclude the dungeon exploration with a total of 10,642 Gil and 61,995 EXP.