First bet is \$3,125.
The second bet is also \$3,125 regardless of who wins.
The third bet is \$2,500 if Sox wins twice, or \$3,750 if tied so far.
The fourth bet is \$1,250 if Sox wins thrice, or \$3,750 if Sox wins twice so far.
The fifth bet is \$2,500 if Sox wins thrice, or \$5,000 if Sox wins twice so far.
The sixth bet is \$5,000.
The seventh bet is \$10,000.
If Sox loses more than they win, replace the number of wins in above with the number of loses, and bet against.
How does this work?
Start from the seventh bet. This means both teams have 3 wins. So this is equivalent to a single game. At this point out balance should be \$0, since otherwise there is no way for any bet to be equivalent to \$10,000 on a single game. Since our balance is \$0, then just bet \$10,000 as per normal.
Now, the sixth bet, if the score is 3-2 for Sox, then Sox winning must give us \$10,000 in total, and Sox losing must give us \$0 in total (as per previous point). So our balance must be \$5,000 at this point, and we should bet \$5,000.
We continue this process until the first bet.
This is easily visualized on the following graph:
$\require{AMScd}\require{enclose}$
$\def\¿{\enclose{roundedbox}}$
$\small \begin{CD}
\¿{-10} @. \¿{-10} @. \¿{-10} @. \¿{-10}\\
@A-1.25AA @A-2.5AA @A-5AA @A-10AA\\
\¿{-8.75} @>1.25>> \¿{-7.5} @>2.5>> \¿{-5} @>5>> \¿{0} @>10>> \¿{10}\\
@A-2.5AA @A-3.75AA @A-5AA @A-5AA\\
\¿{-6.25} @>2.5>> \¿{-3.75} @>3.75>> \¿{0} @>5>> \¿{5} @>5>> \¿{10}\\
@A-3.125AA @A-3.75AA @A-3.75AA @A-2.5AA\\
\¿{-3.125} @>3.125>> \¿{0} @>3.75>> \¿{3.75} @>3.75>> \¿{7.5} @>2.5>> \¿{10}\\
@A-3.125AA @A-3.125AA @A-2.5AA @A-1.25AA\\
\¿{0} @>3.125>> \¿{3.125} @>3.125>> \¿{6.25} @>2.5>> \¿{8.75} @>1.25>> \¿{10}\\
\end{CD}$
The nodes represent our balance so far, and the edges represents the bet.
You start filling 10 at the right edges (and -10 at the top), and 0 in the diagonal. The anytime we see a node where its right node and top node are filled, we fill that node with the average. The edge is the difference between the two adjacent nodes, which would be the amount of bet we would need to place. If positive bet for, if negative, bet against.