What does "studieth to answer" mean in Proverbs 15:28 ?

Proverbs 15:28: The heart of the righteous studieth to answer: but the mouth of the wicked poureth out evil things.

"The heart of the righteous studieth to answer" means that we need to think before we talk.

For example, we need to research and study a topic before talking about it. It also means that we need to say what is appropriate, instead of saying anything that comes to our mind.