document.write( "Question 543545: Hi, there is this question that had been stumping me for a while.
\n" ); document.write( "You can become a member of a gym for $400 a year, and pay $5 every time you go.
\n" ); document.write( "Or, you can not be a member and pay $4 for a workout and $10 to use equipment. How many times should you go to the gym to make being a member worth it?
\n" ); document.write( "

Algebra.Com's Answer #354847 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+n+\" = number of times you go to gym
\n" ); document.write( "For member:
\n" ); document.write( "Cost = \"+400+%2B+5n+\"
\n" ); document.write( "For non-member:
\n" ); document.write( "Cost = \"+4n+%2B+10n+\"
\n" ); document.write( "Set the two costs equal to each other
\n" ); document.write( "\"+400+%2B+5n+=+14n+\"
\n" ); document.write( "\"+9n+=+400+\"
\n" ); document.write( "\"+n+=+44.444+\"
\n" ); document.write( "It looks like you have to go 45 times to make
\n" ); document.write( "being a member worth the money
\n" ); document.write( "Here's a plot of the lines:
\n" ); document.write( "( red is line for membership )
\n" ); document.write( "\"+graph%28+400%2C+400%2C+-5%2C+50%2C+-50%2C+750%2C+5x+%2B+400%2C+14x+%29+\"
\n" ); document.write( "
\n" );