A researcher collected data on the number of hours spent studying by a group of 8 students over a week. The data recorded is as follows:
4, 5, 6, 3, 7, 5, 8, 6
Calculate the mean and median of the hours spent studying.