For this case we have to:
Integer 1: Represented with the variable

Integer 2: It is consecutive, then it is represented with

We propose the equation:

We apply distributive property to the terms within parentheses:

We add similar terms:

We subtract 2 from both sides:

We divide between 5 on both sides:

Finally we have to:

ANswer:
Consecutive integers are 5 and 6