document.write( "Question 24586: A fruit vendor bought 36 pineapples for $30. He sold some at $1.29 each and the rest at $1.09, therby gaining $13.64. How many did he sell at each price? \n" ); document.write( "
Algebra.Com's Answer #13170 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
He bought them for $30 and made $13.64 (profit). So the total selling price
\n" ); document.write( "adds up to $43.64.
\n" ); document.write( "Let x = the number sold at $1.29 ea.
\n" ); document.write( "Then (36 -x) must be the number sold at $1.09
\n" ); document.write( "\"%281.29%29+%2A+x+%2B+%281.09%29+%2A+%2836+-+x%29+=+43.64\"
\n" ); document.write( "\"+%281.29+%2A+x%29+-+%281.09+%2A+x%29+%2B+39.24+=+43.64\"
\n" ); document.write( "\".2+%2A+x+=+4.4\"
\n" ); document.write( "\"+x+=+4.4+%2F+.2\"
\n" ); document.write( "\"+x+=+22\"
\n" ); document.write( "22 sold at $1.29 and (36 - 22) = 14 sold at $1.09
\n" ); document.write( "check:
\n" ); document.write( "\"%281.29+%2A+22%29+%2B+%281.09+%2A+14%29+=+28.38+%2B+15.26\"
\n" ); document.write( "\"%281.29+%2A+22%29+%2B+%281.09+%2A+14%29+=+43.64\"
\n" ); document.write( "checks OK
\n" ); document.write( "
\n" );