I'm trying to get the "volume" weighted mean of grades for students in 3 classes. There are 4 students in total and the below shows each student's grade.
A = {100}
B = {200}
C = {310, 290}
The mean grade for each class is:
A = 100
B = 200
C = (310+290)/2 = 300
Finally, I'm calculating the weighted mean of grades for all students in 3 classes:

$$ \frac{(1 \times 100) + (1 \times 200) + (2 \times 300)}{1 + 1 + 2} = 225 $$
However, I'm not sure if I'm truly calculating "weighted" mean of grades for all students, as the simple arithmetic mean of grades also gives the same result:
$$ \sum_{i=1}^n \frac{Grades}{num. of students} = \frac{100+200+310+290}{4} = 225 $$
Is there something wrong with my logic, calculation, and/or dataset?
\timesinstead of*. – ryang May 18 '23 at 04:09