document.write( "Question 243093: I need help setting up this problem. Thanks\r
\n" ); document.write( "\n" ); document.write( "Red cards are worth 3 credits, while blue cards are worth 5 credits. You need any combination of 20 cards to play a game.\r
\n" ); document.write( "\n" ); document.write( "With 84 credits to buy cards , how many of each type of card will you have when you play?
\n" ); document.write( "

Algebra.Com's Answer #178104 by oberobic(2304)\"\" \"About 
You can put this solution on YOUR website!
Let:
\n" ); document.write( "r = number of red cards
\n" ); document.write( "b = number of blue cards
\n" ); document.write( "We are told there are 20 cards, so:
\n" ); document.write( "r + b = 20
\n" ); document.write( "which can be rearranged as:
\n" ); document.write( "b=20-r
\n" ); document.write( "...
\n" ); document.write( "Since each r has a value of 3 and each b has a value of 5, we can compute the total.
\n" ); document.write( "3r + 5b = 84
\n" ); document.write( "...
\n" ); document.write( "Substituting,
\n" ); document.write( "3(20-b) + 5b = 84
\n" ); document.write( "60 -3b +5b = 84
\n" ); document.write( "2b=24
\n" ); document.write( "b=12
\n" ); document.write( "Since the total number of cards is 20, then
\n" ); document.write( "r=8
\n" ); document.write( "Checking the answer...
\n" ); document.write( "3r = 24
\n" ); document.write( "5b = 60
\n" ); document.write( "24+60=84
\n" ); document.write( "
\n" );