The swimming is key. I don’t think Farah can swim, and I read somewhere that Froome barely can either.
Phelps would swim a mile in under 20 minutes, and trains on a bike and at running already.
He’d destroy them, I think, over that kind of distance - 20k bike and 10k run aren’t quite far enough for the difference in ability to tell, I don’t think.