According to the statement, we have two consecutively numbered gym lockers which sum 123.
Let's suppose that the first locker has the number X, so the consecutive has a number X+1, and because the sum of the numbers is 123, we can write the following equation:
Solving the last equation for X we find that:
Answer
The numbers of the lockers are 61 and 62.