Complex sentence: In some cities, during the Middle Ages, there were sellers of public toilets, who were equipped with a large cloak and a bucket, and for a fee, one could use the bucket, while hidden by the cloak.
Split into simpler sentences: In some cities during the Middle Ages, there were sellers of public toilets who were equipped with a large cloak and a bucket. For a fee, one could use the bucket while hidden by the cloak.