Five whole numbers are written in order.
4 6 x y 10
The mean and median of the five numbers are the same.
Work out the values of x and y.