Hope this helps :) If you have a doubt just comment :)
Answer:
Let's say that x is sam's age and y is Amy's age
x=y-4
and five years ago:
x-5=(y-5)/2
y-4-5=(y-5)/2
2y-18=y-5
y=13
x=9
then:
sam's age is 9 and Amy's age is 13
<span>No Jackson incorrect because 6&8even number 6+8=14 even.</span>
An easy way is to do this
the 2 numbers are -x and x+8 where x is an integer
we can generate lots of numbers this way
example
-1 and 9
-2 and 10