According to the text, the growing demand for African slaves during the slave trade era motivated African leaders to

A. migrate large populations of people inland away from coastal threats by the shores
B. initiate attacks of rival tribes in order to profit by selling captured Africans to the Europeans
C. established peaceful relationships with the Europeans out of fear
D. pay the Europeans lots of money to avoid becoming colonized

B. initiate attacks of rival tribes in order to profit by selling captured Africans to the Europeans