document.write( "Question 692850: A test has 30 questions, you earn 9 points for every correct answer but lose 5 points for every wrong answer. The final test score was 18, how many questions were answered correctly? \n" ); document.write( "
Algebra.Com's Answer #427112 by Stitch(470)\"\" \"About 
You can put this solution on YOUR website!
Set up:
\n" ); document.write( "A = # of correct answers
\n" ); document.write( "B = # of wrong answers
\n" ); document.write( "Equation 1: \"18+=+9A+-+5B\"
\n" ); document.write( "Equation 2: \"30+=+A+%2B+B\"
\n" ); document.write( "-------------------------------
\n" ); document.write( "Solve equation 2 for one of the variables. I soled for A
\n" ); document.write( "\"A+=+30+-+B\"
\n" ); document.write( "Now plug (30 - B) into equation 1 for A
\n" ); document.write( "Equation 1: \"18+=+9A+-+5B\"
\n" ); document.write( "\"18+=+9%2A%2830+-+B%29+-+5B\"
\n" ); document.write( "Simplify
\n" ); document.write( "\"18+=+270+-+9B+-+5B\"
\n" ); document.write( "Combine like terms
\n" ); document.write( "\"18+=+270+-+14B\"
\n" ); document.write( "Subtract 270 from both sides
\n" ); document.write( "\"-252+=+-14B\"
\n" ); document.write( "Divide both sides by -14
\n" ); document.write( "\"highlight%2818+=+B%29\"
\n" ); document.write( "Now plug 18 into equation 2 for B
\n" ); document.write( "Equation 2: \"30+=+A+%2B+B\"
\n" ); document.write( "\"30+=+A+%2B+%2818%29\"
\n" ); document.write( "Subtract 18 from both sides
\n" ); document.write( "\"highlight_green%2812+=+A%29\"
\n" ); document.write( "
\n" );