The weights of 15 students in a class are given as 25, 30, 32, 30,…