document.write( "Question 435835: A car travels 150 miles in 12 gallons of gasoline. How many gallons of gasoline are needed to travel 500 miles? \n" ); document.write( "
Algebra.Com's Answer #301621 by jorel1380(3719)\"\" \"About 
You can put this solution on YOUR website!
150/12=500/x
\n" ); document.write( "150x=6000
\n" ); document.write( "x=40 gallons of gas are needed.
\n" ); document.write( "
\n" );