Two girls holding bags walking down the sidewalk.
Two females are holding sacks.
Two girls is understood to mean two females who are hoding bags or sacks, anotherr word for bags.
Girls are females, and sacks is a synonym of bags.
While walking down the sidewalk the girls held their sacks.