Need help ASAP!!!!!!

Answer:
Mean = 2.95
Median = 3
Step-by-step explanation:
The mean of the number of visits of 40 adults to the gym is
[tex]\dfrac{0\cdot 4+1\cdot 3+2\cdot 12+3\cdot 5+4\cdot 8+5\cdot 5+6\cdot 2+7\cdot 1}{40}=\\ \\=\dfrac{3+24+15+32+25+12+7}{40}=\dfrac{118}{40}=2.95[/tex]
The median of the data is the average number between 20th and 21th terms (because 40 is even number, so the middle term is the average between two middle terms).
20th term = 3 visits
21th term = 3 visits
Hence, median is 3 visits