document.write( "Question 515003: Suppose you have a cookie stand, and when you charge $3 per cookie box you sell 250 boxes. But when you raise your price to $4 you only sell 120 boxes. \r
\n" ); document.write( "\n" ); document.write( "a. Write an equation for the number of boxes you sell as a function of the price you charge. \r
\n" ); document.write( "\n" ); document.write( "b. Denote \"B\" for number of boxes, and \"P\" for the price you charge.\r
\n" ); document.write( "\n" ); document.write( "c. Assume the function is linear
\n" ); document.write( "

Algebra.Com's Answer #343668 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"B\" = number of boxes
\n" ); document.write( "Let \"P\" = price charged
\n" ); document.write( "Assume a straight line
\n" ); document.write( "The data given tells what the slope of the line is.
\n" ); document.write( "Plot \"P\" on the vertical axis
\n" ); document.write( "Plot \"B\" on the horizontal axis
\n" ); document.write( "slope = \"+%284+-+3%29+%2F+%28+120+-+250+%29+\"
\n" ); document.write( "slope = \"+-1%2F130+\"
\n" ); document.write( "The equation so far is:
\n" ); document.write( "\"+P+=+-1%2F130%2AB+%2B+P%5B0%5D+\"
\n" ); document.write( "Where \"+P%5B0%5D+\" is the vertical intercept
\n" ); document.write( "Plugging in data:
\n" ); document.write( "\"+-1%2F130+=+-.0077+\"
\n" ); document.write( "\"+3+=+-1%2F130%2A250+%2B+P%5B0%5D+\"
\n" ); document.write( "\"+P%5B0%5D+=+3+%2B+1.923+\"
\n" ); document.write( "\"+P%5B0%5D+=+4.923+\"
\n" ); document.write( "The equation is:
\n" ); document.write( "\"+P+=+-.0077B+%2B+4.923+\"
\n" ); document.write( "check answer:
\n" ); document.write( "\"+4+=+-.0077%2A120+%2B+4.923+\"
\n" ); document.write( "\"+4+=+-.924+%2B+4.923+\"
\n" ); document.write( "\"+4+=+3.999+\" ( error due to rounding off)
\n" ); document.write( "and
\n" ); document.write( "\"+3+=+-.0077%2A250+%2B+4.923+\"
\n" ); document.write( "\"+3+=+-1.925+%2B+4.923+\"
\n" ); document.write( "\"+3+=+2.998+\" ( also round-off error )
\n" ); document.write( "Here's the plot:
\n" ); document.write( " \"+graph%28+400%2C+400%2C+-50%2C+700%2C+-1%2C+6%2C+-.0077x+%2B+4.923+%29+\"
\n" ); document.write( "
\n" );