document.write( "Question 5887: Suppose you have a lemonade stand, and when you charge $1 per cup of lemonade you sell 60 cups. But when you raise your price to $2 you only sell 30 cups. Write an equation for the number of cups you sell as a function of the price you charge. Denote \"C\" for number of cups, and \"P\" for the price you charge. Assume the function is linear.\r
\n" ); document.write( "\n" ); document.write( "I know this may seem really easy, but I have been looking at it forever and I can't figure it out. I want to help my cousin with his homework but it's above my head. Thanks for all your help.
\n" ); document.write( " \r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #3098 by longjonsilver(2297)\"\" \"About 
You can put this solution on YOUR website!
when P=1 --> C=60
\n" ); document.write( "when P=2 --> C=30\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "imagine a grpah of C against P...just like y-against-x.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have 2 coordinates (1, 60) and (2, 30). Now, assuming it is linear, we can find the gradient, m from:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "m = \"%28y%5B2%5D+-+y%5B1%5D%29%2F%28x%5B2%5D+-+x%5B1%5D%29\"\r
\n" ); document.write( "\n" ); document.write( "m = (60-30)/(1-2)
\n" ); document.write( "m = 30/-1
\n" ); document.write( "m = -30\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "so, from the general equation of a straight line, y=mx+c, we now know that y=-30x+c. Now for c. To find this, we need to know both \"x\" and \"y\"...which we do: we have 2 sets of points. So pick one of them..i chose (1,60):\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "60 = -30(1) + c
\n" ); document.write( "60 = -30 + c
\n" ); document.write( "c = 90\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "so, equation is now C = -30P + 90\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "jon.
\n" ); document.write( "
\n" ); document.write( "
\n" );