I might be wrong, so someone will probably correct me.
Escrow Money
151M was distributed back to the 30 teams (about 5M each).
7M was used by the league.
38M was distributed back to the players.
Tax Money
These teams were over the tax level ($61.7M) by the following amounts:
Knicks ($37.2), Mavs ($17.3), Magic ($7.8), Pacers ($4.7), Grizzlies ($3.7), Spurs ($0.9)
The 24 teams under the tax threshhold got their full share (1/30th) of the total tax paid (71.6M) (so that's ~2.39M x 24 teams = 57.28M). (Spurs didn't get this because they were over.)
Every team gets 1/30th of the remaining money (71.6-57.28)/30 = $477,333
So the Spurs organization paid 900K (the dollar for dollar tax they were over), missed out on 2.39M distribution, but got 477K (tax) and 5M (escrow) back.