let the numbers be x and y
x - y = 18
x + y = 86
adding both eq
2x = 104
x = 52
52 - y = 18
-y = 18 - 52
-y = -34
y =34
Ans. The two numbers are 52 , 34