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. AT: "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. AT: "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" AT: "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]])
Refusing to be angry is spoken of as if anger were something that can be forced away. Also, "heart" represents a person's emotions. AT: "Refuse to be angry" (See: [[rc://en/ta/man/translate/figs-metaphor]]and [[rc://en/ta/man/translate/figs-metonymy]])
The authors speaks of things as being useless and meaningless as if they were "vapor" Just as vapor disappears and does not last, the author speaks of things having no lasting value. See how you translated "vapor" in [Ecclesiastes 1:14](../01/12.md). AT: "because youth and its strength will not last forever" or "because you will not be young and strong forever" (See: [[rc://en/ta/man/translate/figs-metaphor]])