document.write( "Question 1201982: the cost of making x thousand pretzels per week is c=.4x^2-28x+87 and the revenue from selling x thousand pretzels per week is r=-.6x^2+8x find the equation for profit where (p=r-c) C and R are in thousands of dollars \n" ); document.write( "
Algebra.Com's Answer #836591 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Answer: P = -x^2 + 36x - 87\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Work Shown:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Profit = Revenue - Cost
\n" ); document.write( "P = R - C
\n" ); document.write( "P = (-0.6x^2 + 8x) - (0.4x^2 - 28x + 87)
\n" ); document.write( "P = -0.6x^2 + 8x - 0.4x^2 + 28x - 87
\n" ); document.write( "P = (-0.6x^2-0.4x^2) + (8x+28x) - 87
\n" ); document.write( "P = -x^2 + 36x - 87\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "----------------------------------------\r
\n" ); document.write( "\n" ); document.write( "Edit: The student requested finding the vertex.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "There are few ways to find the vertex. One way is to note that the parabola y = -x^2+36x-87 is of the form y = ax^2+bx+c
\n" ); document.write( "a = -1
\n" ); document.write( "b = 36
\n" ); document.write( "c = -87\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The vertex is of the form (h,k)
\n" ); document.write( "The steps to calculate h would be:
\n" ); document.write( "h = -b/(2a)
\n" ); document.write( "h = -36/(2*(-1))
\n" ); document.write( "h = -36/(-2)
\n" ); document.write( "h = 18
\n" ); document.write( "This is the x coordinate of the vertex.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Plug that into the function to find its paired y coordinate.
\n" ); document.write( "y = -x^2+36x-87
\n" ); document.write( "y = -18^2+36(18)-87
\n" ); document.write( "y = 237
\n" ); document.write( "The vertex is located at (h,k) = (18, 237)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "It means that selling 18 thousand pretzels will bring in a max profit of 237 thousand dollars.
\n" ); document.write( "The point (18, 237) is the highest point on the parabola.
\n" ); document.write( "I recommend using a graphing app such as Desmos or GeoGebra to confirm the answer is correct.
\n" ); document.write( "
\n" ); document.write( "
\n" );