The diagrammatic representation of the relation between the various taxonomical groups are called cladograms and the organisms are grouped according to their shared traits.
Worms are related to spiders according to the cladogram.
Therefore, spiders are related to worms compared to ants.
Learn more about cladogram here:
https://brainly.com/question/10117601