Each can of green beans costs ($3.00/5) = 60¢ at the village market, and ($6.10/10) = 61¢ at Sam's Club.
If you're watching every penny, then that MIGHT be enough of a difference to make you decide to buy your beans at the village market, but not necessarily.
If, say, the village market is farther away from you, or if there are other things you're going to get from Sam's anyway, then you should buy your beans there too.