Input (grade 4): Many slaves sold in Zanzibar ended up in Brazil, which was then a Portuguese colony.
Output (grade 5): Many slaves who were sold in Zanzibar ended up in Brazil, which was then a Portuguese colony.