Complex sentence: According to their traditions, their ancestor was trained by the Prophet Mohammed to prepare a basket, and use it for scavenging, while the females of the community were trained to sweep.
Split into simpler sentences: According to their traditions, their ancestor was trained by the Prophet Mohammed to prepare a basket, and use it for scavenging. While the females of the community were trained to sweep.