Was the slave trade so profitable because of the demand for slaves or the trade triangle?

It was profitable for everyone concerned, the Europeans had free labour working their plantations which brought about huge profits and the slave suppliers (rival African tribes and others )sold people (without a cost of production ) to Europeans in exchange for things like Rum and weapons. Everyone except for the slaves, profited from the triangle.