Answer:
x = 1 and x = -7
Step-by-step explanation:
Given that,
[tex]y=x^2+5x[/tex] ...(1)
and
y = 7 -x ....(2)
Put the value of y from equation (2) in (1)
[tex]7-x=x^2+5x\\\\x^2+5x-7+x=0\\\\x^2+6x-7=0\\\\x^2+7x-x-7=0\\\\x(x+7)-1(x+7)=0\\\\(x-1)(x+7)=0[/tex]
So,
x = 1 and x = -7
Hence, the solution of the given equations is x = 1 and x = -7