A researcher recorded the number of hours spent studying per week by a group of 12 students. The data collected is as follows:
Hours: 5, 8, 6, 9, 4, 7, 5, 10, 4, 8, 5, 9
Calculate the mean and median of the dataset. What is the difference between the mean and the median?