x = 7
y = 8
All I did was assume x was 7 and y was 8. I added 4, 6, 7, 8, and 10 together. I got 35. Then, I divided by five (since that's how many numbers are shown) and I got 7 for the mean. 7 is the median, and the 7 is the mean gotten from 4, 6, 7, 8, and 10. Therefore, x must equal 7 and y must equal 8.