document.write( "Question 1189607: Ashley had 24 math problems for her homework. Her father made the following deal with her. He said \"I'll give you $5 for every problem you got right, but you pay me $3 for every problem you got wrong.\" If Ashley broke even on this deal, how many problems did she get correct? Write an equation to solve the problem. \n" ); document.write( "
Algebra.Com's Answer #821010 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
let x = the number right.
\n" ); document.write( "let y = the number wrong.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x + y = 24
\n" ); document.write( "5x - 3y = 0\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "these 2 equations need to be solved simultaneously.
\n" ); document.write( "the first equation tells you the total number right and wrong.
\n" ); document.write( "the second equation tells you the the scores for the number right and the scores for the number wrong.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "multiply both sides of the first equation by 5 and leave the second equation as is to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5x + 5y = 120
\n" ); document.write( "5x - 3y = 0\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "subtract the second equation from the first to get 8y = 120\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solve for y to get y = 120 / 8 = 15.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "this makes x = 9 because 15 + 9 = 24.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "5x - 3y becomes 5 * 9 - 3 * 15 which becomes 45 - 45 = 0.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that confirms the values of x and y are good.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the solution is that she got 9 correct and 15 wrong.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the two equations that needs to be solved simultaneously were:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x + y = 24
\n" ); document.write( "5x - 3y = 0\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );