document.write( "Question 1120853: a customer bought a dozen of pieces of fruits (apples and oranges) for 1.32 dollars. If an apple cost 3 cents more than an orange and more apples than oranges were purchased, how many pieces of each kind were bought? \n" ); document.write( "
Algebra.Com's Answer #736577 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "An informal solution by trial and error is of course valid.

\n" ); document.write( "But let's look at a formal mathematical process that can be used, along with some logical reasoning, to solve this kind of problem.

\n" ); document.write( "Let x be the number of apples; then 12-x is the number of oranges.
\n" ); document.write( "Let y be the cost (in cents) of an apple; the y-3 is the cost of an orange.

\n" ); document.write( "The total cost of the fruit (x apples at y cents each, and (12-x) oranges at (y-3) cents each) was $1.32, or 132 cents:

\n" ); document.write( "\"%28x%29%28y%29%2B%2812-x%29%28y-3%29+=+132\"
\n" ); document.write( "\"xy%2B12y-36-xy%2B3x+=+132\"
\n" ); document.write( "\"12y%2B3x+=+168\"
\n" ); document.write( "\"4y%2Bx+=+56\"

\n" ); document.write( "Now use some logical reasoning to find exactly the value x must be.

\n" ); document.write( "\"4y%2Bx+=+56\"
\n" ); document.write( "\"x+=+56-4y\"
\n" ); document.write( "\"x+=+4%2814-y%29\"

\n" ); document.write( "\"14\" and \"y\" are whole numbers, so (14-y) is a whole number. This equation then tells us that x is a multiple of 4.

\n" ); document.write( "But we know x is less than 12; and we know it is greater than (12-x). The only value of x that satisfies all those conditions is x=8.

\n" ); document.write( "So the purchase was of 8 apples and 4 oranges.

\n" ); document.write( "The problem doesn't ask for the price of each kind of fruit; but we can go ahead and find them.

\n" ); document.write( "\"8%28y%29%2B4%28y-3%29+=+132\"
\n" ); document.write( "\"8y%2B4y-12+=+132\"
\n" ); document.write( "\"12y+=+144\"
\n" ); document.write( "\"y+=+12\"

\n" ); document.write( "The cost of each apple is y=12 cents; the cost of each orange is y-3 = 9 cents.

\n" ); document.write( "Check: 8 apples at 12 cents + 4 oranges at 9 cents = 96 cents + 36 cents = $1.32
\n" ); document.write( "
\n" );