The numbers of the three types of cookies must have a sum of six. Possible sets of whole numbers whose sum is six are \[ 0{,}0{,}6; 0{,}1{,}5; 0{,}2{,}4; 0{,}3{,}3; 1{,}1{,}4; 1{,}2{,}3; \text{ and } 2{,}2{,}2. \] Every ordering of each of these sets determines a different assortment of cookies. There are $3$ orders for each of the sets $0{,}0{,}6$; $0{,}3{,}3$; and $1{,}1{,}4$. There are $6$ orders for each of the sets $0{,}1{,}5$; $0{,}2{,}4$; and $1{,}2{,}3$. There is only one order for $2{,}2{,}2$. Therefore the total number of assortments of six cookies is \[ 3 \cdot 3 + 3 \cdot 6 + 1 = 28. \]
Another approach: Construct eight slots, six to place the cookies in and two to divide the cookies by type. Let the number of chocolate chip cookies be the number of slots to the left of the first divider, the number of oatmeal cookies be the number of slots between the two dividers, and the number of peanut butter cookies be the number of slots to the right of the second divider. For example, $111 \mid 11 \mid 1$ represents three chocolate chip cookies, two oatmeal cookies, and one peanut butter cookie. There are $C_8^2 = 28$ ways to place the two dividers, so there are $28$ ways to select the six cookies.