Final answer:
To solve this problem, we can set up a system of equations and use substitution to find the two numbers.
Step-by-step explanation:
To solve the problem, we can set up a system of equations using the given information. Let's call the first number x and the second number y.
The first equation is: x = y - 5
The second equation is: 2y = 3x + 23
Now we can substitute the value of x from the first equation into the second equation:
2y = 3(y - 5) + 23
Simplifying the equation gives us: 2y = 3y - 15 + 23
Combine like terms: -y = 8
Dividing both sides of the equation by -1 gives us: y = -8
Substituting the value of y into the first equation gives us: x = -8 - 5
Simplifying further gives us: x = -13
Therefore, the two numbers are -13 and -8.