I'll take a stab at it!

I see three separate cases for adding points:

(a) A range from 40 points to 10 points linearly spaced from 1st place to last place (e.g., if 30 players, first gets 40 points, last gets 10 points),

(b) 3 points just for buying in, and

(c) 1 point for knocking out a player.

The formula below won't work if any of my assumptions above are incorrect. (Obviously.)

`10 + 30 * (n - r) / (n - 1) + 3 + numberOfHits`

Part (a) is the 10 + 30 * (n-r)/(n-1),

Part (b) is the +3, and

Part (c) is the +numberOfHits.

Hope this helps!