These two phrases mean basically the same thing and are combined to emphasize that the man should be happy while he is young. (See: [[rc://en/ta/man/translate/figs-parallelism]])
Here the word "heart" may represent the mind or emotions. Alternate translation: "Pursue the good things that you desire" or "Pursue the good things that you have determined to pursue" (See: [[rc://en/ta/man/translate/figs-metonymy]])
Here "eyes" represent the whole person. Alternate translation: "whatever you see that you desire" or "whatever you see to be best" (See: [[rc://en/ta/man/translate/figs-synecdoche]])
The abstract noun "judgment" can be stated as "judge" or "make you account" Alternate translation: "God will judge you for all these things" or "God will make you account for all of your actions" (See: [[rc://en/ta/man/translate/figs-abstractnouns]])