document.write( "Question 1140927: Maxis taking a cross-country road trip. Gas prices vary as the friends travel across the US from $4 dollars per gallon on the east coast, to $3 in the mid-US, to $5 on the west coast. If they used twice as much gas in the mid-US than on either coasts combined, and they spend $515 on gas to purchased 150 gallons of gas, how many gallons of gas did they buy at each price? \n" ); document.write( "
Algebra.Com's Answer #761459 by Boreal(15235)\"\" \"About 
You can put this solution on YOUR website!
x=gallons of gas in midwest
\n" ); document.write( "150-x on both coasts
\n" ); document.write( "x=2(150-x)=300-2x
\n" ); document.write( "3x=300
\n" ); document.write( "x=100 gallons in midwest or $300 ANSWER
\n" ); document.write( "That leaves 50 gallons in both coasts
\n" ); document.write( "w=west
\n" ); document.write( "e=east=50-w
\n" ); document.write( "5w+4(50-w)=215, 515-300.
\n" ); document.write( "5w+200-4w=215
\n" ); document.write( "w=15 gallons west coast ($75) ANSWER
\n" ); document.write( "e=35 gallons ($140) ANSWER
\n" ); document.write( "
\n" ); document.write( "
\n" );