The marks scored by 30 students in a Mathematics test are recorded in the table…