Suppose four horses – $A, B, C$, and $D$ – are entered in a race and the odds on them, respectively, are $5$ to $1$, $4$ to $1$, $3$ to $1$, and $2$ to $1.$ If you bet $\$1$ on $A$, then you receive $\$6$ if $A$ wins, or you realize a net gain of $\$5$. You lose your dollar if $A$ loses. How should you bet your money to guarantee that you can always make money no matter which horse wins?
I found this question from Horse Betting Odds - But Guaranteed Win! and made some revision.
I think if I bet my money on A, B, C, and D under the following scenario, such as A:B:C:D = 20:15:12:10. I can always make money. These numbers come from the ratios 1/3 : 1/4 : 1/5 : 1/6 multiplied by 60, where 60 is the lowest common multiple for 3,4,5, and 6.
However, I wonder if there is a formal mathematical way to derive this solution. Is this question related to solving the linear inequality system or the probability?