document.write( "Question 163266: A car rental as allocated $1.5million to buy a fleet of cars consisting od compact, intermediate and full size cars. Compacts cost $12000, intermediate coast 18,000 and full size cost $24,000 each. If twice as many compacts as intermediate cars are purchased and the total number is 100 determine how many cars of each type will be purchased(assume that the entire budget will be used)\r
\n" ); document.write( "\n" ); document.write( "I'm not sure whether my equation is right can you please help me?
\n" ); document.write( "This is what I have: let x represent compacts, let y represent intermediate & let z represent full size. therfore, \r
\n" ); document.write( "\n" ); document.write( "First equation is 12000x +18000+ 24000 = 1.500000 \r
\n" ); document.write( "\n" ); document.write( "Second equation is x= 2y + 100
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #120314 by nerdybill(7384)\"\" \"About 
You can put this solution on YOUR website!
First, you need to define your variables:
\n" ); document.write( "Let x = number of intermediate cars purchased
\n" ); document.write( "then because \"twice as many compacts as intermediate cars are purchased\":
\n" ); document.write( "2x = number of compacts purchased
\n" ); document.write( "and finally because \"a total of 100 cars\" were purchased:
\n" ); document.write( "100-3x = full size cars purchased
\n" ); document.write( ".
\n" ); document.write( "Now, we can derive our equation:
\n" ); document.write( "12000(2x) +18000x+ 24000(100-3x) = 1500000
\n" ); document.write( "24000x + 18000x+ 2400000 - 72000x = 1500000
\n" ); document.write( "24x + 18x+ 2400 - 72x = 1500
\n" ); document.write( "2400 - 30x = 1500
\n" ); document.write( "2400 = 30x+1500
\n" ); document.write( "900 = 30x
\n" ); document.write( "30 = x (number of intermediate cars)
\n" ); document.write( ".
\n" ); document.write( "number of compacts:
\n" ); document.write( "2x = 2(30) = 60
\n" ); document.write( ".
\n" ); document.write( "number of full-sized cars:
\n" ); document.write( "100-3x = 100-3(30) = 100-90 = 10
\n" ); document.write( "
\n" ); document.write( "
\n" );