Let us assume the numbers are x and y.
The first part of the question can be written as

and the second part can be written as

From equation 1, we can get a value for y as

Substitute for y in equation 3 into equation 2:

Expanding and solving, we get

Next, we substitute for the value of x into equation 3:

Therefore, the two numbers are 114 and 86