The frequency distribution which follows shows the marks obtained by 40 students on a test. How can I Evaluate the mean mark for the distribution?

To find the mean, multiply each mark by its corresponding frequency. Then, add the products. Finally, divide the sum by the total frequency, which is 40.
[tex]\begin{gathered} 1\times3=3 \\ 2\times5=10 \\ 3\times6=18 \\ 4\times9=36 \\ 5\times5=25 \\ 6\times2=12 \\ 7\times6=42 \\ 8\times4=32 \end{gathered}[/tex][tex]3+10+18+36+25+12+42+32=178[/tex][tex]178\div40=4.45[/tex]So the mean mark for the distribution is 4.45.