KJV: I applied mine heart to know, and to search, and to seek out wisdom, and the reasonof things, and to know the wickedness of folly, even of foolishness and madness:
NASB: I directed my mind to know, to investigate and to seek wisdom and an explanation, and to know the evil of folly and the foolishness of madness.