2 numbers can be represented by the variables x and y.
Set up a system of equations:


The two numbers added together will result in a sum of 37. However, one number subtracted from another will result in a difference of 31.
In both systems of equations, there are inverses of variable y. Therefore, we can combine the systems of equations by adding them together:


Divide both sides by 2 to get x by itself:

One of the numbers will be 34.
Plug the value into one of the equations:

Subtract 34 from both sides to get y by itself:

The two numbers that sum up to 37, with a difference of 31 between them, will be 3 and 34.