Assume that a HOME team and an AWAY team play each other in a game. The HOME team defeats the AWAY team, so the HOME team gains 30 points and the AWAY team loses 30 points. Each team has two players.
The winning team distributes the points that it won to its players based on the number of strokes each player had in the game.
For example, Player 1 had 15 strokes and Player 2 had 5 strokes. There was a total of 20 strokes.
The formula for distribution points to the winning team members would be:
$$\text{POINTS} \times \frac{\text{PLAYER_STROKES}}{\text{TOTAL_STROKES}} = \text{PLAYER_POINTS}$$
Out of 30 points, Player 1 would receive 22.5 points and Player 2 would receive 7.5 points.
My question is, how can this same type of distribution be applied to the losing team in the inverse order. I want the losing team's player with the least strokes to lose the most points and the player with the most strokes should lose the least points.
The AWAY team loses 30 points. Player 1 has 17 strokes. Player 2 has 10 strokes. Total Strokes = 27
It should also be mentioned that the formula should work if the teams have more players.
Any ideas?