You could solve this just by random guessing and checking, but here's another way of going about it that is both concrete and significantly quicker (and will guarantee you good points on your test).
Let's call one of your numbers
So, if these two must sum to equal
And as you can see, it all boils down to what is a trivially simple equation to solve:
Now, to find the other number, we just add 1:
So your two numbers are
Note that you could have also chosen
Hope that helped :)