That's feels like a question that could fill an entire book. But, the shortest answer I could provide confidently is that a lot of money came out of the various aspects of the "triangular trade" and that became capital that went into investing in various works that are part of the British Industrial Revolution in the 18th century. It was a large point in the book Capitalism and Slavery by Eric Williams.