take for example
Mathematical analysis (1) 5 credits and 90 points.
Mathematical analysis (2) 6 credits and 88 points
Mathematical analysis (3) 4 credits and 85 points
The weighted average is divided into
(90*5+88*6+85*4)/(5+6+4)=87.867