document.write( "Question 435792: A person buys 20 tickets. some cost $8 and some cost $5. he spend $118.
\n" ); document.write( "How many of each ticket does he buy?
\n" ); document.write( "

Algebra.Com's Answer #301592 by Gogonati(855)\"\" \"About 
You can put this solution on YOUR website!
Let x the number of tickets $8, then 20-x is the number of tickets $5. Since he spend $118, we have the below equation:\r
\n" ); document.write( "\n" ); document.write( "8x+5(20-x)=118 =>8x-5x=118-100 => 3x=18 => x=6.\r
\n" ); document.write( "\n" ); document.write( "Answer:This person bought 6 tickets $8 and 20-6=14 tickets $5.\r
\n" ); document.write( "\n" ); document.write( "Check:6*8+14*5=118 => 48+70=118 => 118=118.
\n" ); document.write( "
\n" );