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:
![x+2y=8...(1)](https://img.qammunity.org/2019/formulas/mathematics/high-school/2le5p7anuwopsvk0jrrfsntk3zne1gik5l.png)
We are also given that twice the first number plus the second totals 31. We can represent this information as:
![2x+y=31...(2)](https://img.qammunity.org/2019/formulas/mathematics/high-school/h2f8rgf0cxgq88jep8cny773c46vk3ctxs.png)
Now let us solve our system of equations using substitution method.
From equation (1) we will get,
![x=8-2y](https://img.qammunity.org/2019/formulas/mathematics/high-school/536al6zouvficytvovzlfpd16lgy7ibgi1.png)
Substituting
in equation (2) we will get,
![16-4y+y=31](https://img.qammunity.org/2019/formulas/mathematics/high-school/5ltwqbcc2tbukxaztvi7utu1yk2hacicnu.png)
![y=(15)/(-3)](https://img.qammunity.org/2019/formulas/mathematics/high-school/p8spbalskta855k0sdrcu7kzlzfkx34aeo.png)
![y=-5](https://img.qammunity.org/2019/formulas/mathematics/high-school/s3ga4at0ogidegmwthcw1s4vdv34ht6lur.png)
Therefore, the second number is -5.
Now let us substitute y=-5 in equation (1).
![x+(2*-5)=8](https://img.qammunity.org/2019/formulas/mathematics/high-school/9o4lawxgnppc3g4sl71b9pcsxb8qq0sxuv.png)
![x-10=8](https://img.qammunity.org/2019/formulas/mathematics/high-school/kefdm0c63foag18wtzc6n8j4tbe1pnvgha.png)
![x=8+10](https://img.qammunity.org/2019/formulas/mathematics/high-school/vhqbwsk5wa22k5sckfnc2px95ixuvvhi2l.png)
![x=18](https://img.qammunity.org/2019/formulas/mathematics/middle-school/ng4uhws131evjdiyzy4sndandwaaro4pgx.png)
Therefore, the first number is 18.