Think of one of our integers that we don't know as N. If we add one more to N, we get N + 1. So let's say N and N + 1 are the two numbers. We are told they add up to 45.
N + (N + 1) = 45 The two numbers are N, N + 1, and add to 45.
2N + 1 = 45 Add the N terms on the left side
2N = 44 Subtract 1 on both sides
N = 22 Divide both sides by 2
So N = 22. When we add one to it, we get 23. A check shows that 22 and 23 are consecutive and add to 45.
Thus, the two integers are 22 and 23.