document.write( "Question 1190205: Bags of coffee worth $90 a bag must be mixed with coffee worth $75 a bag to get 50 bags worth $87 a bag. How many bags of each are needed? \n" ); document.write( "
Algebra.Com's Answer #821797 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Let's define two brand labels such that
\n" ); document.write( "Brand A is worth $90 per bag
\n" ); document.write( "Brand B is worth $75 per bag\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let
\n" ); document.write( "x = number of bags of brand A
\n" ); document.write( "y = number of bags of brand B\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The final mix has 50 bags total, so,
\n" ); document.write( "x+y = 50
\n" ); document.write( "y = 50-x
\n" ); document.write( "which we'll use later in substitution\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "90x = total cost of buying x bags of brand A
\n" ); document.write( "75y = total cost of buying y bags of brand B
\n" ); document.write( "90x+75y = total cost buying all bags of coffee\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We divide this total cost by the number of bags overall (50) to get the final cost per bag ($87)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "(total cost)/(total number of bags) = final cost per bag
\n" ); document.write( "(90x+75y)/(50) = 87
\n" ); document.write( "90x+75y = 87*(50)
\n" ); document.write( "90x+75y = 4350\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now we plug in y = 50-x and solve for x.
\n" ); document.write( "90x+75y = 4350
\n" ); document.write( "90x+75( y ) = 4350
\n" ); document.write( "90x+75( 50-x ) = 4350
\n" ); document.write( "90x+75*50-75x = 4350
\n" ); document.write( "90x+3750-75x = 4350
\n" ); document.write( "15x+3750 = 4350
\n" ); document.write( "15x = 4350-3750
\n" ); document.write( "15x = 600
\n" ); document.write( "x = 600/15
\n" ); document.write( "x = 40\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Then compute the value of y
\n" ); document.write( "y = 50-x
\n" ); document.write( "y = 50-40
\n" ); document.write( "y = 10\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answers:
\n" ); document.write( "40 bags of the $90 per bag brand.
\n" ); document.write( "10 bags of the $75 per bag brand.
\n" ); document.write( "
\n" ); document.write( "
\n" );