.
Two hotel rooms have room numbers that are consecutive integers. The sum of the numbers is 515. What are the two room numbers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
Your equation is
x + (x+1) = 515, or
2x + 1 = 515, or
2x = 514,
x = = 257.
The room numbers are 257 and 258.