The first time he came to power he was elected but the second time he took power by force i hope this helps

CORRECT ORDER:-
The kingdom of Mali loses some of its power.
Askia Muhammad becomes the ruler of Songhai.
Songhai conquers Timbuktu and controls trade activities.
Timbuktu booms with trade.
HOPE IT HELPS YOU.