If the son can do math correctly and get's 1% = $10,000
working backwards..
10,000 * 100 = 1,000,000 is the remaining amount distributed to the immediate family members.
(wife = 500k , daughter = 400k , lawyer = 90k , son = 10k)
1,000,000 + 50,000,000 hospital = 51,000,000
half for the math teacher got 51,000,000
51,000,000 * 2 = 102,000,000
102,000,000 + 5,000,000 dog = 107,000,000 total