One way in which the African kingdoms of Ghana, Mali, and Songhai were similiar was that they--

a. directly controlled gold mines
b. benefited from the gold-salt trade
c. improved their military strength with the use of gunpowder
d. adopted Islam as the religion of their subjects