If the median of the distribution given below is 28.5, find the values of x and y

If the median of the distribution given below is 28.5, find the values of x and y.
image


image