document.write( "Question 220624: You worked 14 hours last week and earned $96 before taxes. Your job as a lifeguard pays $8 per hour, and your job as a cashier pays $6 per hour. How many hours did you work at each job? \n" ); document.write( "
Algebra.Com's Answer #165569 by likaaka(51)\"\" \"About 
You can put this solution on YOUR website!
Let x represent the number of hours worked as a lifeguard and y represent the number of hours worked as a cashier. Now set up a system of equations using total hours worked and wages earned.\r
\n" ); document.write( "\n" ); document.write( "x+y=14
\n" ); document.write( "8x+6y=96\r
\n" ); document.write( "\n" ); document.write( "To solve using substitution:
\n" ); document.write( "x+y=14, set equation to x= by subtracting y from both sides
\n" ); document.write( "x=14-y, now substitute the value of x into the second equation
\n" ); document.write( "8(14-y)+6y=96, distribute the 8
\n" ); document.write( "112-8y+6y=96, combine like terms
\n" ); document.write( "112-2y=96, subtract 112 from both sides
\n" ); document.write( "-2y=-16, divide both sides by -2
\n" ); document.write( "y=8, so 8 hours are worked at the cashier job
\n" ); document.write( "Given y=8, solve for x
\n" ); document.write( "x+8=14, subtract 8 from both sides
\n" ); document.write( "x=6, so 6 hours are worked as a lifeguard
\n" ); document.write( "
\n" );