The least number of packages for the caps is 15 because if the caps come in packages of three then you divide 45 by 3 that's how you get 15 caps and the least number of packages for shirts is 9 because if there's five in each package then you divide 45 by 5 which gives you nine. That's how you find the least number of caps and shirts.