Solution:
Given:
Let the two numbers be represented by x and y
Hence,
Also,
Solving the two equations simultaneously by substituting equation (2) into equation (1);
To get x, substitute the value of y into equation (2).
Hence,
Therefore, the two numbers are {10, 12}