Given a set of data 10,9,8, x, 12, y, 10,7, the average is 10, X-Y = 2, x, y are equal to what?

Given a set of data 10,9,8, x, 12, y, 10,7, the average is 10, X-Y = 2, x, y are equal to what?

(10+9+8+x+12+y+10+7)/8=10
(44 + X + y) / 8 = 10 ------ 1
x-y=2
Formula x = 2 + y ------ 2
Substituting formula 2 into Formula 1
(44+2+y+y)/8=10
46+2y=80
2y=34
y=17
x=19