document.write( "Question 426856: Juan goes to a bank and gets change for a
\n" ); document.write( "$50 bill consisting of all $5 bills and $1 bills. There are
\n" ); document.write( "22 bills in all. How many of each kind are there?
\n" ); document.write( "

Algebra.Com's Answer #296846 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"a\" = number of $5 bills
\n" ); document.write( "Let \"b\" = number of $1 bills
\n" ); document.write( "given:
\n" ); document.write( "(1) \"+a+%2B+b+=+22+\"
\n" ); document.write( "(2) \"+5a+%2B+b+=+50+\"
\n" ); document.write( "----------------
\n" ); document.write( "(1) \"b+=+22+-+a+\"
\n" ); document.write( "By substitution:
\n" ); document.write( "(2) \"+5a+%2B+22+-+a+=+50+\"
\n" ); document.write( "\"+4a+=+28+\"
\n" ); document.write( "\"+a+=+7+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+a+%2B+b+=+22+\"
\n" ); document.write( "\"+b+=+22+-+7+\"
\n" ); document.write( "\"+b+=+15+\"
\n" ); document.write( "There are 7 $5 bills and 15 $1 bills
\n" ); document.write( "
\n" );