document.write( "Question 321955: Alan3354 got rid of 2 migraines for me tonight. I solved this one but I am curious if I set it up correctly. (sorry, studying for finals and want a 4.0).
\n" ); document.write( "\"John used 5 gallons of BLUE paint and 8 gallons of WHITE paint on his house. Kim used only 3 gallons of BLUE, but 11 gallons of WHITE at the same price per gallon as John's paint. If John spent $197 and Kim spent $205, how much was the blue paint per gallon?
\n" ); document.write( "My solution was x=total value of blue/5(# of blue gallons)+(197-x)/8(# of white gallons)=197/13(total # of gallons). \r
\n" ); document.write( "\n" ); document.write( "x/5+(197-x)/8=197/13\r
\n" ); document.write( "\n" ); document.write( "Am I on the right track and is \"Kim's\" info totally insignificant here or is my brain fried far more than I'm willing to admit??\r
\n" ); document.write( "\n" ); document.write( "\"Not feeling like an A student anymore\"
\n" ); document.write( "

Algebra.Com's Answer #230471 by mananth(16946)\"\" \"About 
You can put this solution on YOUR website!
John used 5 gallons of BLUE paint and 8 gallons of WHITE John spent $197
\n" ); document.write( "Kim used only 3 gallons of BLUE, but 11 gallons of WHITE Kim spent $205, \r
\n" ); document.write( "\n" ); document.write( "Let blue paint cost $x/gallon
\n" ); document.write( "Let White paint cost $y per gallon
\n" ); document.write( "..
\n" ); document.write( "John
\n" ); document.write( "5x+8y=197.......... equation 1
\n" ); document.write( "Kim
\n" ); document.write( "3x+11y=205......... equation 2
\n" ); document.write( "multiply equation 1 by 3 and equation2 by 5 to eliminate x
\n" ); document.write( "..
\n" ); document.write( "15x+24y=591
\n" ); document.write( "15x+55y=1025
\n" ); document.write( "Subtract
\n" ); document.write( "15x+24y-15x-55y=591-1025
\n" ); document.write( "-31y=-434
\n" ); document.write( "y=434/31
\n" ); document.write( "y=14 dollars - cost of white paint / gallon
\n" ); document.write( "plug the value of y in equation 1
\n" ); document.write( "5x+8*14=197
\n" ); document.write( "5x=197-112
\n" ); document.write( "5x=85
\n" ); document.write( "x=17 dollars the cost of blue paint -
\n" ); document.write( "One more migraine gone I suppose
\n" ); document.write( "
\n" ); document.write( "
\n" );