For two consecutive numbers :
let the first number is a, and of course the next number to it would be a+1
adding these two numbers: (a) + (a+1) = 97
then solve for a:
a+a+1=97
2a+1=97
2a=96
a=48
so the first number is 48 and the second number is the next one to it (49)
The two numbers are 48 and 49