Okay, so the easiest way to do this problem is to compare them by bringing the amount of cans to the same number. We will do this by multiplying both the town market's amount of cans and the town market's price.
Town Market=10c for $7.80
Sam's Club=10c for $7.70
Now we can easily compare the prices and we can see that Sam's Club is the better buy.