Here wise people are referred to by their "hearts." This speaks of the wise person mourning as being in a house of mourning. Alternate translation: "Wise people think deeply about death" (See: [[rc://en/ta/man/translate/figs-synecdoche]] and [[rc://en/ta/man/translate/figs-metaphor]])
Here foolish people are referred to by their "hearts." This speaks of foolish people thinking only about what makes them happy as being in a house of feasting. Alternate translation: "but foolish people think only about enjoying themselves" (See: [[rc://en/ta/man/translate/figs-synecdoche]] and [[rc://en/ta/man/translate/figs-metaphor]])