Assume that the 2 numbers are x and y, then
Since their sum is 18
That means add x and y, equate the sum by 18
Since their difference is 2
That means subtract x and y, equate the difference by 2
Add (1) and (2) to eliminate y
Divide both sides by 2 to find x
Substitute the value of x in (1) to find y
Subtract 10 from both sides
The 2 numbers are 10 and 8