document.write( "Question 231292: when Samantha baby-sat for 8 hours and worked at a restaurant for 3 hours, she made 58 dollars. When she baby-sat for 2 hors and worked at a restaurant for 5 hours, she made 40 dollars. How much does she get paid per hour to baby-sit? How much does she get paid per hour to work at a restaurant?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #171222 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"a\" = hourly pay baby-sitting
\n" ); document.write( "Let \"b\" = hourly pay in restaurant
\n" ); document.write( "given:
\n" ); document.write( "(1) \"8a+%2B+3b+=+58\"
\n" ); document.write( "(2) \"2a+%2B+5b+=+40\"
\n" ); document.write( "These are 2 equations and 2 unknowns, so it's solvable
\n" ); document.write( "Multiply both sides of (2) by \"4\" and
\n" ); document.write( "subtract (1) from (2)
\n" ); document.write( "(2) \"8a+%2B+20b+=+160\"
\n" ); document.write( "(1) \"-8a+-+3b+=+-58\"
\n" ); document.write( "\"17b+=+102\"
\n" ); document.write( "\"b+=+6\"
\n" ); document.write( "and, since
\n" ); document.write( "(2) \"2a+%2B+5b+=+40\"
\n" ); document.write( "\"2a+%2B+5%2A6+=+40\"
\n" ); document.write( "\"2a+=+40+-+30\"
\n" ); document.write( "\"2a+=+10\"
\n" ); document.write( "\"a+=+5\"
\n" ); document.write( "She makes $5/hr babysitting and $6/hr at restaurant
\n" ); document.write( "check:
\n" ); document.write( "(1) \"8a+%2B+3b+=+58\"
\n" ); document.write( "\"8%2A5+%2B+3%2A6+=+58\"
\n" ); document.write( "\"40+%2B+18+=+58\"
\n" ); document.write( "\"58+=+58\"
\n" ); document.write( "OK
\n" ); document.write( "(2) \"2a+%2B+5b+=+40\"
\n" ); document.write( "\"2%2A5+%2B+5%2A6+=+40\"
\n" ); document.write( "\"10+%2B+30+=+40\"
\n" ); document.write( "\"40+=+40\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" );