I think the more features two organisms share or the shared anatomical features, the closely related they are. For example; the class insecta (e.g bee, butterfly) and the class arachnida (e.g spider and tick) belong to phylum arthropoda because they have similar anatomical features such as appendages, segmented body among other features.