document.write( "Question 473426: A motel rents double rooms at $35 per day and single rooms at $23 per day. If 27 rooms were rented one day for a total of $849, how many rooms of each kind were rented? \n" ); document.write( "
Algebra.Com's Answer #324683 by Theo(13342)![]() ![]() You can put this solution on YOUR website! x + y = 27 (first equation) \n" ); document.write( "23*x + 35*y = 849 (second equation) \n" ); document.write( "x equals the number of single rooms \n" ); document.write( "y equals the number of double rooms \n" ); document.write( "use first equation to solve for y in terms of x. \n" ); document.write( "you get y = 27-x \n" ); document.write( "substitute for y in the second equation to get: \n" ); document.write( "23*x + 35*(27-x) = 849 \n" ); document.write( "this equation becomes: \n" ); document.write( "23*x + 35*27 - 35*x = 849 \n" ); document.write( "combine like terms to get: \n" ); document.write( "-12*x + 945 = 849 \n" ); document.write( "subtract 945 from both sides of the equation to get: \n" ); document.write( "-12*x = 849-945 = -96 \n" ); document.write( "divide both sides by -12 to get: \n" ); document.write( "x = -96/-12 = 8 \n" ); document.write( "since x+y = 27, this means that: \n" ); document.write( "x = 8 \n" ); document.write( "y = 19 \n" ); document.write( "8*23 + 19*35 = 184 + 665 = 849 \n" ); document.write( "everything checks out. \n" ); document.write( "x+y = 27 \n" ); document.write( "23*x + 35*y = 849 \n" ); document.write( "answer is: \n" ); document.write( "x = 8 = number of single rooms. \n" ); document.write( "y = 19 = number of double rooms. \n" ); document.write( " \n" ); document.write( " |