Use an ogive to represent the following data and locate the median. The class intervals and frequencies are as follows: Class Interval: 0-10, 10-20, 20-30, 30-40, 40-50. Frequencies: 6, 9, 15, 12, 8. What is the median?