I think it’s that scientists mainly compare similarities and differences in what the organisms look like also with the less obvious relations, they analyze their DNA. The goal is to find a common ancestor between the two organisms. The more recently that ancestor existed, the more closely related the organisms are. Hope I helped!