document.write( "Question 173499: Sam buys 3 kinds of fruit for 40 dollars, 10 dollars, and 1 dollar each. He pays 259 dollars for 100 pieces of fruit. How many of the cheapest did he buy? \n" ); document.write( "
Algebra.Com's Answer #128428 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Call the quantities of the 3 kinds of fruit
\n" ); document.write( "\"a\",\"b\", and \"c\"
\n" ); document.write( "Given:
\n" ); document.write( "(1) \"a+%2B+b+%2B+c+=+100\"
\n" ); document.write( "(2) \"40a+%2B+10b+%2B+1%2Ac+=+259\"
\n" ); document.write( "---------------------------
\n" ); document.write( "Just observing, I see I have 3 unknowns and only 2
\n" ); document.write( "equations. It looks like I need another equation,
\n" ); document.write( "but I'll try to solve anyway
\n" ); document.write( "Subtract (1) from (2)
\n" ); document.write( "\"39a+%2B+9b+=+159\"
\n" ); document.write( "divide both sides by \"3\"
\n" ); document.write( "\"13a+%2B+3b+=+53\"
\n" ); document.write( "I'll make a chart and see if I can get \"a+%2B+b+%2B+c+=+100\"
\n" ); document.write( "----------------------------------------------
\n" ); document.write( "-- a -- b -- c -- 13a+3b -- a+b+c
\n" ); document.write( "----------------------------------------------
\n" ); document.write( "-- 4 --- 0 --- 1 --- 53 ----- 5
\n" ); document.write( "-- 3 -- 14/3 (no good, \"b\" is not a whole number)
\n" ); document.write( "-- 1 -- 40/3 (no good, \"b\" is not a whole number)
\n" ); document.write( "-- 2 --- 9 --- 47 --- 53 --- 100
\n" ); document.write( "These are the only values for a,b, and c that work out
\n" ); document.write( "He bought 47 of the cheapest fruit
\n" ); document.write( "
\n" );