Kathryn is shopping and needs to choose a combination of pants and shirts to buy. She has a total of $24 to spend. Each pair of pants costs $8 while each shirt costs $4. To help her, she makes a list of her total utility for different quantities of pants and shirts which is given below. If Kathryn wants to maximize her utility, how many pairs of pants and shirts should she buy?