Which of the following was a similarity between Ghana and Mali?

They both had democratic governments.
They both grew powerful through trade.
They both isolated themselves from the world.
They both developed far from sources of water.

They both grew powerful through trade.