document.write( "Question 1070075: I have 11 pieces of candy in each of three baskets. From each basket I take out one piece of candy in the following order: from the left, from the middle, from the right, from the middle, from the left, from the middle, from the right, and so on. What is the largest number of pieces of candy left in one of the baskets when the middle basket is empty?\r
\n" ); document.write( "\n" ); document.write( "Thank you.
\n" ); document.write( "

Algebra.Com's Answer #685178 by Edwin McCravy(20054)\"\" \"About 
You can put this solution on YOUR website!
I have 11 pieces of candy in each of three baskets. From each basket I take out one piece of candy in the following order: \r
\n" ); document.write( "\n" ); document.write( "from the left,
\n" ); document.write( "from the middle,
\n" ); document.write( "from the right,
\n" ); document.write( "from the middle,
\n" ); document.write( "from the left,
\n" ); document.write( "from the middle,
\n" ); document.write( "from the right, and so on. \r
\n" ); document.write( "\n" ); document.write( "What is the largest number of pieces of candy left in one of the baskets when the middle basket is empty?
\n" ); document.write( "
\r\n" );
document.write( "Left   Middle   Right\r\n" );
document.write( " 11      11      11  <--in the beginning \r\n" );
document.write( " 10      11      11  <--after taking 1 from the left\r\n" );
document.write( " 10      10      11  <--after taking 1 from the middle\r\n" );
document.write( " 10      10      10  <--after taking 1 from the right\r\n" );
document.write( " 10       9      10  <--after taking 1 from the middle \r\n" );
document.write( "  9       9      10  <--after taking 1 from the left\r\n" );
document.write( "  9       8      10  <--after taking 1 from the middle\r\n" );
document.write( "  9       8       9  <--after taking 1 from the right\r\n" );
document.write( "  9       7       9  <--after taking 1 from the middle\r\n" );
document.write( "  8       7       9  <--after taking 1 from the left\r\n" );
document.write( "  8       6       9  <--after taking 1 from the middle\r\n" );
document.write( "  8       6       8  <--after taking 1 from the right\r\n" );
document.write( "  8       5       8  <--after taking 1 from the middle\r\n" );
document.write( "  7       5       8  <--after taking 1 from the left\r\n" );
document.write( "  7       4       8  <--after taking 1 from the middle\r\n" );
document.write( "  7       4       7  <--after taking 1 from the right\r\n" );
document.write( "  7       3       7  <--after taking 1 from the middle\r\n" );
document.write( "  6       3       7  <--after taking 1 from the left\r\n" );
document.write( "  6       2       7  <--after taking 1 from the middle\r\n" );
document.write( "  6       2       6  <--after taking 1 from the right\r\n" );
document.write( "  6       1       6  <--after taking 1 from the middle\r\n" );
document.write( "  5       1       6  <--after taking 1 from the left\r\n" );
document.write( "  5       0       6  <--after taking 1 from the middle\r\n" );
document.write( "\r\n" );
document.write( "Answer: 6 in the right basket.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" ); document.write( "
\n" );