If Dots sells only T-shirts and shorts, then the shorts figure is simply the remainder: 600 minus 250 equals 350 pairs of shorts.
The subtraction works because the total is made up of exactly those two categories, so nothing else needs to be accounted for.