For 8<x<10 , 2y<0
Hence no solution for y can exist for 8<x<10
For x>10,
Both x-10 as well as x-8 must be a power of 2.
x-10 = 2m & x-8 = 2n
or,2m+10 = 2n+8
or,2n-2m = 2
This is only possible when n=2 and m=1.
x = 12 , y = 3.
For x<8.
10-x = 2m & 8-x = 2n
or,10 - 2m= 8 - 2n
or,2m-2n = 2
This is only possible when n=1 and m=2
x = 6 , y = 3.
Number of pairs = 2. (12,3) and (6,3)