Answer:
1st number = 18
2nd number = -5
Explanation:
Let x be first number and y be the 2nd number.
We have been given that first number plus twice a second number is 8. We can represent this information as:

We are also given that twice the first number plus the second totals 31. We can represent this information as:

Now let us solve our system of equations using substitution method.
From equation (1) we will get,

Substituting
in equation (2) we will get,



Therefore, the second number is -5.
Now let us substitute y=-5 in equation (1).




Therefore, the first number is 18.