Looks like a system of equations will solve this.
X = one number
Y = another number
-----------------------------------
X - Y = 7
X = 2Y + 5
-------------------------------------Rearrange top equation.
X = 7 + y
--------------Insert into bottom equation.
7 + Y = 2Y +5
7 = Y + 5
2 = Y
=========Find X in top first equation ( X - Y = 7)
X - 2 = 7
X = 9
======You have checked one equation, now check this original equation.
X = 2Y + 5
9 = 2(2) + 5
9 = 9
=======Checks and is consistent.
Y = 2
X = 9