Ten digits: four words plus two (from the tower) or one word, so the word =6.
Hundreds: 3 gold plus 2 (in the same way) or gold, so gold =9.
Qian: Two studies add up to two (in the same way) or learning so learning =2.
The last number =30-5-6-9-2=8.
So the mathematical pyramid is 82965.