Which of the following problems contributed to the decline of both the Mali Empire and the Songhai Empire?

Gunpowder weaponry
Disputes between Christians and Muslims
Unclear succession between kings
Prolonged droughts and famine