team wins. naruto and sasuke were having trouble with madara alone and they managed to defeat kaguya.
Tbh I don't see how the Rikudo sennin is meant to be weaker than her- Naruto and Sasuke assumed his power...and beat Kaguya. You could say it's also down to their own individual skills as well, but still, she did seem a bit meh the entire time (a few times, Naruto alone was giving her a run for her money). I have no doubt that Hagoromo was weaker than her when he fought her, but after taking the power of the ten tails...I'm not so sure.