How is mali different from songhai?

The Mali Empire came before the Songhai Empire.