How did trade impact the development of West African kingdoms?

How did trade impact the development of West African kingdoms?