Answer:
mean=28.8
median=31
Explanation:
mean=sum of all values/number of all values
mean=40+45+7+21+31+40+45+7+21+31/10
=288/10
mean=28.8
Median
arrrange in order
7,7,21,21,31,31,40,40,45,45
in case of even ungrouped data median is the average of middle two values
= (31+31)/2
median =31