You can put this solution on YOUR website! [y=-5x+40] (red line) & [y=-x^2+30x-8] (green line)
-5P+40=-P^2+30P-8
P^2-5P-30P+40+8=0
P^2-35P+48=0
USING THE QUADRATIC EQUATION WE GET:
P=(35+-SQRT[-35^2-4*1*48])/2*1
P=(35+-SQRT[1225-192])/2
P=(35+-SQRT1033])/2
P=(35+-32.14)/2
P=(35+32.14)/2
P=67.14/2
P=33.57 ANSWER.
P=(35-32.14)/2
P=2.86/2
P=1.43 ANSWER.
-------------------------------------
A GRAPHIC SOLUTION IS:
(graph 500x500 pixels, x from -60 to 50, y from -50 to 240, of TWO functions y = -5x +40 and y = -x^2 +30x -8).