document.write( "Question 579312: 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 $5 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 #370935 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
let x equal the cost per cookie box.
\n" ); document.write( "let y equal the number of cookie boxes you sell.
\n" ); document.write( "you have 2 points that you can use to make a straight line equation.
\n" ); document.write( "they are:
\n" ); document.write( "(x1,y1) = (3,250)
\n" ); document.write( "(x2,y2) = (5,120)
\n" ); document.write( "these 2 points can be used to generate a straight line equation using the point slope form.
\n" ); document.write( "the point slope form of the equation for a straight line is:
\n" ); document.write( "y - y1 = m * (x - x1)
\n" ); document.write( "it can also be:
\n" ); document.write( "y - y2 = m * (x - x2)
\n" ); document.write( "any point that is on the line can be used.
\n" ); document.write( "m is the slope of the equation.
\n" ); document.write( "the formula to find the slope is:
\n" ); document.write( "m = (y2 - y1) / (x2 - x1)
\n" ); document.write( "you use both points to find the slope.
\n" ); document.write( "substituting for y1 and y2 and x1 and x2, we get:
\n" ); document.write( "m = (120 - 250) / (5 - 3)
\n" ); document.write( "this becomes:
\n" ); document.write( "m = -130 / 2 which becomes:
\n" ); document.write( "m = -65
\n" ); document.write( "our slope is -65 and our equation becomes:
\n" ); document.write( "y - y1 = -65 * (x - x1)
\n" ); document.write( "or it becomes:
\n" ); document.write( "y - y2 = -65 * (x - x2)
\n" ); document.write( "we can use either point.
\n" ); document.write( "we'll use (x1,y1) = (3,250)
\n" ); document.write( "when we use that point, our equation becomes:
\n" ); document.write( "y - 250 = -65 * (x - 3)
\n" ); document.write( "we simplify this to get:
\n" ); document.write( "y - 250 = -65x + 195
\n" ); document.write( "add 250 to both sides of this equation to get:
\n" ); document.write( "y = -65x + 195 + 250 which becomes:
\n" ); document.write( "y = -65x + 445
\n" ); document.write( "that's our equation.
\n" ); document.write( "the equation looks like this:
\n" ); document.write( "\"graph%28600%2C600%2C-10%2C10%2C-30%2C500%2C-65x%2B445%2C250%2C120%29\"
\n" ); document.write( "you can see from the graph that when x = 3, y = 250, and when x = 5, y = 120.
\n" ); document.write( "the horizontal lines at y = 250 and y = 120 are there to help you see that.\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );