Solution:
Denote by Sk(m) the money of the k-th player, k=1,2,3,4, after the move and payment of the m-th, m=1,2,3,4, and Sk(0)=S in the beginning, k=1,2,3,4. Denote by ai the sum of points on the dices thrown by Ai. It follows from the game rules that Sk(m)=Sk(m−1)+am1Sk(m−1)=Sk(m−1)am1+am for k=m (i.e. when Ak gets money) and
Sk(k)=Sk(k−1)−ak1i=k∑Si(k−1)=Sk(k−1)−ak1(4S−Sk(k−1))=Sk(k−1)ak1+ak−ak4S
when Ak pays.
Using these formulas we find the money of the four players in the end of the game. We obtain that
56S56S54S54S=S1(4)=PS−a1a2a3a44S(1+a2)(1+a3)(1+a4)=S2(4)=PS−a2a3a44S(1+a3)(1+a4)=S3(4)=PS−a3a44S(1+a4)=S4(4)=PS−a44S
where
P=a1a2a3a4(1+a1)(1+a2)(1+a3)(1+a4)
By the first two equations we get a2=a1−1, and by the last two we have a4=a3−1. Now by the second and third equations we obtain
52=a44−a2a44(1+a3)⟺(a2+10)(10−a4)=120
It follows from the later equation that a4<10. We also have a4≥7 since the dices are 7 and therefore the minimum sum is 7. It remains to check the possibilities a4=7,8 and 9. The only solution appears for a4=7 (the maximum sum is 42) which gives a3=8, a2=30 and a1=31.