Explanation:
Let x be the first number
Let y be the 2nd number
given,

as equation 1
and

as equation 2.
Now we will use elimination method to solve for simultaneous equations.
We will use equation 1 - equation 2 to eliminate x to solve for y.

Substitute y into equation 2.

The numbers are 9 and 16.