document.write( "Question 1210589: A fruit seller had a collection of apples, pears, and oranges.
\n" ); document.write( "Initially, 1/4 of the fruits were apples.
\n" ); document.write( "He sold 80 apples and 1/3 of the pears.
\n" ); document.write( "After this, he bought more oranges, increasing the number of oranges by 60%.
\n" ); document.write( "At this point, the number of pears he had left was twice the number of apples he had left.
\n" ); document.write( "Finally, he realized that the total number of fruits he had now was exactly 20% more than the total number he started with.
\n" ); document.write( "How many oranges did the fruit seller have at the very beginning?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #854132 by greenestamps(13325)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "The problem asks for the number of oranges he started with. So let that be our variable.

\n" ); document.write( "x = original number of oranges

\n" ); document.write( "We will need another variable.

\n" ); document.write( "y = original number of apples

\n" ); document.write( "The original number of apples is 1/4 of the total number of fruits, so the total number of fruits is 4y. This gives us

\n" ); document.write( "4y-(x+y) = 3y-x = original number of pears

\n" ); document.write( "To start, then, we have

\n" ); document.write( "apples: y
\n" ); document.write( "pears: 3y-x
\n" ); document.write( "oranges: x

\n" ); document.write( "He sells 80 apples and 1/3 of the pears, leaving...

\n" ); document.write( "apples: y-80
\n" ); document.write( "pears: (2/3)(3y-x) = 2y-(2/3)x
\n" ); document.write( "oranges: x

\n" ); document.write( "He buys more oranges, increasing the number of oranges by 60% -- i.e., multiplying the number of oranges by 160%, or 8/5.

\n" ); document.write( "apples: y-80
\n" ); document.write( "pears: (2/3)(3y-x) = 2y-(2/3)x
\n" ); document.write( "oranges: (8/5)x

\n" ); document.write( "After doing that, he has twice as many pears as apples

\n" ); document.write( "\"2y-%282%2F3%29x=2%28y-80%29\"
\n" ); document.write( "\"2y-%282%2F3%29x=2y-160\"
\n" ); document.write( "\"%282%2F3%29x=160\"
\n" ); document.write( "\"x=240\"

\n" ); document.write( "That is what the problem asked us to find, so we are done.

\n" ); document.write( "ANSWER: x = 240 oranges

\n" ); document.write( "Although the problem doesn't require us to do any more work, it is curious to continue to find the original numbers of apples and pears.

\n" ); document.write( "The total number of fruits at the end was 20% more than the number at the beginning.

\n" ); document.write( "at the beginning: \"4y\"
\n" ); document.write( "at the end: \"%28y-80%29%2B%282y-%282%2F3%29x%29%2B%288%2F5%29x=3y-80-160%2B384=3y%2B144\"

\n" ); document.write( "The total number at the end was 20% greater than -- i.e. 6/5 as much -- as at the beginning:

\n" ); document.write( "\"3y%2B144=%286%2F5%29%284y%29=%2824%2F5%29y\"
\n" ); document.write( "\"144=%289%2F5%29y\"
\n" ); document.write( "\"y=%285%2F9%29144=80\"

\n" ); document.write( "The fruits he started with:
\n" ); document.write( "apples: y = 80
\n" ); document.write( "pears: 3y-x = 240-240 = 0
\n" ); document.write( "oranges: 240
\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );