document.write( "Question 562230: Ted knows about a marble machine that doubles the number of marbles you put in and adds 24 marbles. One day he put in a certain number and got back a new number. He put the new number in the machine and got back 360 marbles. How many marbles did he put in the machine in the first place
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #364503 by issacodegard(60)\"\" \"About 
You can put this solution on YOUR website!
Hi, let's denote the effect of the marble machine by the function,\r
\n" ); document.write( "\n" ); document.write( "f(n)=2n+24\r
\n" ); document.write( "\n" ); document.write( "Where we input n marbles and output 2n+24 marbles.\r
\n" ); document.write( "\n" ); document.write( "One day x marbles were input and thus f(x) marbles were output. Then f(x) was input and thus output was f(f(x)) marbles, but as written in the problem was 360 marbles.\r
\n" ); document.write( "\n" ); document.write( "So we solve f(f(x))=360 for x\r
\n" ); document.write( "\n" ); document.write( "Therefore, we have\r
\n" ); document.write( "\n" ); document.write( "f(f(x))=f(2x+24)=2(2x+24)+24=4x+72=360\r
\n" ); document.write( "\n" ); document.write( "So, x=72, which was the original number of marbles input.
\n" ); document.write( "
\n" );