Complex sentence: The group of girls, who had been beating her, took away her backpack, dumping its contents into the water and street.
Split into simpler sentences: The group of girls, who were beating her, took her backpack away from her. They dumped its contents into the water and street.