You can put this solution on YOUR website! let x & (x+1) be the 2 consecutive numbers.
x^2+(x+1)^2=5
x^2+x^2+2x+1=5
2x^2+2x+1-5=0
2x^2+2x-4=0
2(x^2+x-2)=0
2(x+2)(x-1)=0
x+2=0
x=-2 answer.
x-1=0
x=1 answer.
proof
-2^2+(-1)^2=5
4+1=5
5=5
1^2+2^2=5
1+4=5
5=5