Can someone please explain me the Mad of this question?

The problem wants us to find the Mean and Median of the grouped data shown in the picture.
MEAN:
To find the mean of the data we only have to multiply the value of a data to its frequency and then find its summation, and then divide it all by the total number of frequency.
[tex]\begin{gathered} \text{Mean}=\frac{0(1)+4(3)+5(8)+6(3)+7(1)+8(5)+9(2)+10(3)_{}}{26} \\ \text{Mean}=\frac{165}{26} \\ \text{Mean}=6.3 \end{gathered}[/tex]MEDIAN:
The median in a grouped data is given by:
If the n is even, Median is (n/2)th Value of the data given.
If the n is odd, Median is [((n+1)/2]th Value of the data given.
And since our n is 26 which is even our Median is the n/2 th value of the data given.
[tex]\text{Median}=\frac{26}{2}=13th\text{ Value of the data given.}[/tex]And the 13th value in our data counting from 0 as the start is 6.
Therefore the Median is 6.