This is relevant to the question asked, taking into account the whole context of the riddle as given in the OP, as explained in my answers below
This indicates a real life scenario
In real life it's impossible to receive nor give an infinite number of envelopes to others, hence here must be meant "an incredible number of envelopes" to make the question correct and answerable", otherwise this little gem would go wrong here already
To calculate "who gave more" odd or even integer bribe values are not relevant here. The calculation uses envelopes from 1 to n. So, it's about these integers when calculating
Hence, clearly B gave more, double the amount to be precise, in this real life example riddle