The following table shows the distribution of test scores in a class.
score | 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 |
pupils |1 | 1 | 5 | 3 | k^2+1 | 6 | 2 | 3 | 4|
if the mean score of the class is 6 . find the value of k
and the median score