They'd be taking the numerical value of their grades, and working out their letter grade average from that. An HD could be anything above 80, a D anything above 70.
Say, two 75s. Average of 75% = D average.
Then he gets two 100's. Average is now 87.5%, an HD average.
But if you only got...