Answer:
17 and 5
Explanation:
Interesting question!
Turn both sentences to equations:

a is the first number, and b is the second number.
A system of equations! A graphing calculator will do the work:
(See picture)
The y in the picture is a, and the x in the picture is b.
So the solution is a=17 and b=5