N ow five of them were wise, and five were foolish.
Five of them were foolish (thoughtless, without forethought) and five were wise (sensible, intelligent, and prudent).