Lucas so obviously chose Maya at the end of Upstate, so there's no way that he kept a jellybean for Riley from when he had first weighed the jellybeans.
Plus, it's not exactly practical, is it? So he just had a loose jellybean in his pocket all that time? No way. Everything happened in Ski Lodge, Maya told Lucas to pick Riley, & someone had some jellybeans, so Lucas took a purple one to give to Riley, that's the only way it makes sense