First, let's call the two numbers we are looking for nn and mm.
We can then write:
n + m = 8n+m=8
and
n - m = 18n−m=18
First, solve the second equation for nn:
n - m + color(red)(m) = 18 + color(red)(m)n−m+m=18+m
n - 0 = 18 + mn−0=18+m
n = 18 + mn=18+m
Next, substitute 18 + m18+m for nn in the first equation and solve for mm:
n + m = 8n+m=8 becomes:
(18 + m) + m = 8(18+m)+m=8
18 + m + m = 818+m+m=8
18 + 2m = 818+2m=8
-color(red)(18) + 18 + 2m = -color(red)(18) + 8−18+18+2m=−18+8
0 + 2m = -100+2m=−10
2m = -102m=−10
(2m)/color(red)(2) = -10/color(red)(2)2m2=−102
(color(red)(cancel(color(black)(2)))m)/cancel(color(red)(2)) = -5
m = -5
Now, substitute -5 for m in the solution to the second equation and calculate n:
n = 18 + m becomes:
n = 18 + -5
n = 18 - 5
n = 13
The two numbers are 13 and -5