document.write( "Question 1199982: A Mix-n-Match selection of 10 cookies is to be made from three varieties: oatmeal, peanut butter, and sugar. How many different selections are possible? \n" ); document.write( "
Algebra.Com's Answer #833973 by Edwin McCravy(20055)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "\r\n" );
document.write( "Make a row of 10 stars \"*\" and 2 bars \"|\".  Here is one way this could be:\r\n" );
document.write( "\r\n" );
document.write( "***|*****|** \r\n" );
document.write( "\r\n" );
document.write( "The number of stars to the left of the leftmost bar is the number of oatmeal\r\n" );
document.write( "cookies.\r\n" );
document.write( "The number of stars between the leftmost bar and the rightmost bar is the number\r\n" );
document.write( "of peanut butter cookies.\r\n" );
document.write( "The number of stars to the right of the rightmost bar is the number of sugar\r\n" );
document.write( "cookies.\r\n" );
document.write( "\r\n" );
document.write( "***|*****|**  represents 3 oatmeals, 5 peanut butters, and 2 sugars.\r\n" );
document.write( "\r\n" );
document.write( "***||*******  represents 3 oatmeals, 0 peanut butters, and 7 sugars.\r\n" );
document.write( "\r\n" );
document.write( "**********||  represents 10 oatmeals, 0 peanut butters, and 0 sugars.\r\n" );
document.write( "\r\n" );
document.write( "There are 12 things counting both stars and bars.  The 10 stars are\r\n" );
document.write( "indistinguishable and the 2 bars are also indistinguishable. So there are\r\n" );
document.write( "\r\n" );
document.write( "\"12%21%2F%2810%212%21%29\" = 66 distinguishable rows of 10 stars and 2 bars, and\r\n" );
document.write( "therefore 66 possible cookie selections.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" ); document.write( "
\n" );