document.write( "Question 1188238: Justin had some cards. He gave Alan 1/10 of the cards and bought another 45
\n" ); document.write( "new cards. Then he used 1/3 of the new total number of cards and bought 40 new
\n" ); document.write( "cards. He had 160 cards in the end. How many cards did he have at first?
\n" ); document.write( "

Algebra.Com's Answer #819272 by Boreal(15235)\"\" \"About 
You can put this solution on YOUR website!
He had x at first.
\n" ); document.write( "Then he had 0.9x, then 0.9x + 45
\n" ); document.write( "then he had (1/3)(0.9x+45)+40=160
\n" ); document.write( "so (1/3)(0.9x+45)=120
\n" ); document.write( "0.9x+45=360, multiplying by 3
\n" ); document.write( "0.9x=315
\n" ); document.write( "x=350 cards to begin with
\n" ); document.write( "315 after giving away 10%
\n" ); document.write( "then 360 after getting 45
\n" ); document.write( "1/3 of those is 120, and another 40 is 160.\r
\n" ); document.write( "\n" ); document.write( "he had 350 to begin with.
\n" ); document.write( "
\n" );