The detail of a class test are as given below :
Marks-------------- no. of students
2------------------4
3------------------7
4-----------------10
5-----------------15
6-----------------8
7-----------------5
8-----------------1
What will be the average marks of the class ?