x2 is the first number
(x + 1)2 is the second number
These numbers are consecutive.
(x+1)2 - x2 = 999 (they differ by 999)
Expand (x+1)2 , then simplify.
x2 + 2x + 1 - x2 = 999
2x + 1 = 999
x = 499
Bigger number is 499 + 1 = 500
This is how you solve these problems.