Some comments on part (b)
(Warning: highbrow mathematics ahead, done by someone not actually particularly expert in the relevant field. Non-mathematicians will be intimidated, actual experts will likely be horrified.)
We are, after a bit of algebraic manipulation, looking for positive integers x < y < z satisfying the equations $2x^2=y(y-1)$ and $2y^2=x(x+1)+z(z+1)$. ($x$ is Anne's number, $y$ is Beth's, and $z$ is the number of runners in the race.)
I see two ways to continue from here. I'll begin with the lower-brow one because it's much easier (though still fairly mathsy) and seems to be substantially more efficient when all we're trying to do is to prove that there aren't solutions smaller than some limit. Then I'll describe the higher-brow one, which I think would be needed if we wanted to find all solutions or prove that there are none.
Lowerbrow approach: Pell's equation
Let's just look at the relationship between $x$ and $y$: Anne versus Beth. This is a standard Pell's equation plus a parity constraint, and the solution turns out to be: look at $(1+\sqrt2)^{2n}$ for integer $n$; this will have form $a_n+b_n\sqrt2$; then we have $a_n^2-2b_n^2=1$, $a_n$ odd, $b_n$ even; then write $x=b_n/2$ and $y=(a_n+1)/2$. There's an efficient way to compute these values, which I'll come to in a moment. And then we can use the second equation to find what $z(z+1)$ has to be, and hence what $4z(z+1)+1=(2z+1)^2$ has to be, and we can just check whether that last thing is a square.
To compute all the $a_n,b_n$ we can use the recurrence relation: $a_{n+1}=3a_n+4b_n$ and $b_{n+1}=2a_n+3b_n$. We start with $a_0=1,b_0=0$. This is all very easy to do with a computer, and I have run it as far as $n=826000$ at which point our candidate values of $x$ have a little over 2100000 binary digits; that is, our number of marathon numbers would need to have over 600000 decimal digits.
(If we take $n=-1$ then we get the "solution" $x=1,y=-1,z=0$; in general, negative $n$ means negative $y$. If we take $n=0$ we get the "solution" $x=0,y=1,z=1$. Neither of these describes a possible marathon. If we take $n=1$ we get $x=1,y=2,z=2$ which does describe a possible marathon but we were asked for "a much larger number of runners".)
OK, now for the heavy artillery. This doesn't actually turn out to get us anything beyond what I've done above -- quite the reverse -- but my guess is that the Pell's-equation approach above will not yield an actual solution in reasonable time, and that it can't prove that there aren't any, whereas someone who knows more than I do about elliptic curves might be able to get a solution or an impossibility proof out of them.
Higherbrow approach: elliptic curves
Three unknowns, two equations: this gives us a curve. Call it $C_1$. (There will be some more to come.) What sort of a curve? Well, it's the intersection of two "quadric surfaces" in three-dimensional space. If we projectivize them, so that our equations become $2x^2=y(y-w)$ and $2y^2=x(x+w)+z(z+w)$ -- call the resulting curve in projective 3-space $C_2$ -- then we can do the following standard calculation: make sure the $w^2$ terms are both zero, which they are, write these as $Aw+B=0$ and $Cw+D=0$ where $A,B$ are linear in $x,y,z$ and $C,D$ are quadratic in $x,y,z$, and eliminate $w$ getting $AD=BC$, a homogeneous cubic equation in $x,y,z$. In this case it turns out to be $2x^3-x^2y+2x^2z-xy^2+2y^3+y^2z-yz^2=0$. Call this $C_3$. (Given a point $(x:y:z)$ on $C_3$, we can then use $Aw+B=0$ to get $w=y-2x^2/y$ (or, if $y=0$, instead use $Cw+D=0$ to get $w=(2y^2-x^2-z^2)/(x+z)$) so that $(x:y:z:w)$ is a point on $C_2$; and then we can recover the original $x,y,z$ on $C_1$ by taking $(x/w,y/w,z/w)$.)
So we have a projective planar cubic curve, and the point $(0,0,0)$ on the original curve -- corresponding to a marathon with zero runners, of whom Anne and Beth are numbered 0 -- corresponds to the point we get by solving $A=B=0$, namely $(-1:0:1)$. This is a rational point on our cubic curve, and a cubic curve with a rational point is an elliptic curve. We can now use a fancy computer algebra system to put it into the standard Weierstrass form, getting $y^2 = x^3 + 7x^2 + 4x + 4$ or, projectively, $y^2z = x^3 + 7x^2z + 4xz^2 + 4z^3$ -- call this one $E$ -- and handy maps between the earlier form and this one: map $(x:y:z)$ on $C_3$ to $(4xy:-8x^2-2xy-2y^2+2yz:-xy+y^2-yz)$ on $E$, and map $(x:y:z)$ on $E$ to $(-\frac14x^3 - \frac{11}4x^2z + \frac14y^2z - 7xz^2 - z^3:-2xz^2 + 2yz^2 - 4z^3:x^2z + 8xz^2 + 2yz^2 + 20z^3)$. Obviously :-).
So, now we can use that fancy computer algebra system again to find the so-called Mordell-Weil group of $E$. That is: all rational points on $E$ (together with some extra structure: they form an "abelian group"). This turns out to be a free abelian group of rank 2, which means we can find points $p,q$ on $E$ such that the rational points on $E$ are exactly the points $mp+nq$ for integer $m,n$, where the meanings of $mp$, $nq$ and $+$ are defined (in a fairly intricate way) by that group structure. For instance, we can take $p=(-4:6:1)$, corresponding to point $(1:2:2)$ on $C_3$, corresponding to point $(1:2:2:1)$ on $C_2$, corresponding to point $(1:2:2)$ on $C_1$. (Does this make any sense? Well, we can check that a marathon with 2 runners, Anne being #1 and Beth being #2, satisfies our equations, and in fact is even a possible marathon.) And then we can take $q=(0:2:1)$, corresponding to point $(0:0:1)$ on $C_3$, corresponding to point $(0:0:-1:1)$ on $C_2$, corresponding to point $(0:0:-1)$ on $C_1$. This too passes the sanity check: a marathon with -1 runners, where Anne and Beth are both #0, may not make any sense as a race but the equations are satisfied.
So far, so good. We have a way to enumerate every possible rational point on $E$; because we have these rational maps between $C_1$, $C_2$, $C_3$, and $E$, rational points on $E$ are the same as rational points on $C_1$ aside from a few technicalities around 0-valued coordinates. But, alas, we want something more: integer points on $C_1$ satisfying certain inequalities.
There are standard ways to find all the integer points on $E$, but alas that isn't at all the same thing as finding integer points on $C_1$. What we can do is to enumerate rational points on $E$ in some sensible order, convert them into points on $C_1$, and see whether they work out. Or, more precisely, tell a computer to do that.
Well, with the two generators I picked above, I have verified that we get no solutions from $mp+nq$ for $-200\leq m,n\leq+200$. Just what does that let us exclude?
There is a thing you can calculate, given a rational point (typically, but not necessarily, on an elliptic curve), called its height; it's just a measure of how large the numbers defining it are. For instance, the height of the point $(-4:6:1)$ is just log(4). The height is "almost" well-behaved with respect to the "group law"; there is a related thing (when we are specifically talking about points on an elliptic curve) called the "canonical height" which has the property that $h(mp+nq)=Ap^2+Bpq+Cq^2$ for suitable $A,B,C$, and that's always within a bounded distance of the actual ("naive") height. This paper tells you a way to compute bounds on how far apart they are, and in this case if I've done the calculations right the difference is bounded on one side by about -1.457 and on the other by about 0.0625; it's certainly no bigger than 2 in absolute value. Given this, we can look at some actual height values and determine that we have $A\simeq0.726,B\simeq-0.373,C\simeq0.275$, and in particular that quadratic form is positive-definite, and (by looking at the "naive heights" for $\max(|m|,|n|)=200$) that any rational point on the curve that doesn't have $-200\leq m,n\leq+200$ has a height of at least about 9000.
And if we start with an integer point $(x,y,z)$ on $C_1$ then the corresponding point on $E$ is $(4xy:-8x^2-2xy-2y^2+2yz:-xy+y^2-yz)$ and the height of that can't be too much bigger than the height of $(x,y,z)$; in fact if $(x,y,z)$ has height $h$ then our point on $E$ has height no bigger than $2h+2$.
To recap a bit: any integer point on $C_1$ corresponds to a rational point on $E$, hence to a point of the form $mp+nq$ on $E$ where $m,n$ are integers. We found by exhaustive checking that any integer point with $0<x<y<z$ on $E$ has to have $\max(|m|,|n|)>200$, and that this implies that the height of our point on $E$ is at least (actually a bit more than) 9000. This implies that the height of the point $(x,y,z)$ on $C_1$ is at least 4500. And this implies that one of $x,y$ has to have at least about 1950 decimal digits.
(We could probably get to @hexomino's 7k digits this way, with a lot more computation. It seems less feasible to prove the "hundreds of thousands of digits" lower bound I gave above by this sort of calculation. But perhaps some deeper insight into rational points on elliptic curves would yield either an actual solution or a proof that none exists.)
Conclusions
So, anyway, I conclude
- No, there could not be such a marathon that fits into the observable universe. Any solution needs numbers that are at least hundreds of thousands of digits long.
- I do not know whether there could be one at all given the ability to have arbitrarily large numbers of runners.
- My guess is that there could, and the relevant number is absurdly large, and there is some clever way to find it.
- It seems unlikely that there is any complete solution that doesn't require some amount of expertise in elliptic curves.
- Congratulations, Bernardo Recamán Santos, you have shown that you know more about elliptic curves than we do. Perhaps you'd like to tell us the answer.
(As I mentioned in comments on the original question, this reminds me of https://www.reddit.com/r/puzzles/comments/azf0zo/im_stuck_on_this_one/ -- a puzzle presented in the same way as all those stupid "95% of people got this WRONG!!" things that do the rounds on social media, but where the difficulty isn't some order-of-operations thing or a matter of noticing that one shoe has an extra lace on it, but that the puzzle comes down to finding integer points on an elliptic curve, the smallest solution is extremely large, and there is no possible way to find it that would be accessible to anyone other than experts. It's trolling, basically. Which is roughly how I feel about this one.)