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

"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.