Luggage allowance is based on the leg with the most generous allowance, given this was all booked under a single PNR.
There's a lot of confusion about it and a lot of check-in agent still think in terms of most significant carrier, but that rule no longer applies, at least not with EY.