Agree on the split before anybody heads to the register. Say a 20 pound bag of rice costs $18. That’s 90 cents a pound. If one household wants 8 pounds and the other wants 12, their shares come to $7.20 and $10.80. A scale lets both families take home exactly what they paid for.
Ask your neighbor, “How much rice would you actually use, and do you have room to store it?” At the store, ask, “Is that price for one bag, or do we have to buy a case?” Search “rice price per pound” with the name of your usual store to compare. If the smaller bags cost about the same per pound, you’ve learned that before either family has to spend extra.