You can put this solution on YOUR website! (x+3)squared-(x+5)squared=-40
----
x^2+6x+9-(x^2+10x+25) = -40
-4x-16 = -40
x + 4 = 10
x = 6
----
Cheers,
Stan H.
-----------
Note the solution by the other tutor, using formal algebra, is fine. But this problem can be solved mentally using the fact that the difference between the squares of consecutive integers is always an odd number, equal to 1 more than twice the smaller number:
What we have is two numbers that differ by 2, and the difference of their squares is 40.
Since 40 = 19+21, that means the difference between the smaller integer n and the next integer n+1 is 19, and the difference between n+1 and the next integer n+2 is 21.