How do the people in Mali make a living?

Farming or working in the cities,
that's what I'm guessing any ways