Here the word "heart" refers to the mind or will. Alternate translation: "The way a wise person thinks ... the way a fool thinks" (See: [[rc://en/ta/man/jit/figs-metonymy]])
Here the words "right" and "left" refer to what is right and wrong. Alternate translation: "tends to doing what is right ... tends to doing what is wrong" (See: [[rc://en/ta/man/jit/figs-idiom]])