if 60% of students in the class were wearing sport shoes and 40% dress shoes, does it mean that everybody in the class were wearing shoes?

sounds like it to me, since no one (probably) was wearing both.