Your numbers are 4 and 9
We’ll call the first number a, the second b.
a = b - 5
5a = 2b + 2
(if you’re not sure where I got those equations, just let me know in the comments.)
Then we’ll substitute the first value into the second equation:
5(b - 5) = 2b + 2
5b - 25 = 2b + 2
3b = 27
b = 9
a = b - 5
a = 9 - 5 = 4