In the image, we can see a round segmented worm (A) and a flat unsegmented worm (B).
Worm A seems to belong to the phylum Annelid, which members are characterized by having its body divided into multiple segments, while worm B seems to be part of the Platyhelminthes phylum, with flat and unsegmented bodies given that they don't have a circulatory system.