If the median of the following data is 28.5, find the values of x and y. The class intervals are 0-10, 10-20, 20-30, 30-40, 40-50, 50-60. The total frequency is 60. The frequencies for the intervals are 5, x, 15, y, and 5. What are the values of x and y?