For both vendors, we need to obtain the price for an ear of corn to determine which bag is a better deal.
For the first vendor, we can obtain the cost of an ear of corn by dividing the price by the ears of corn, as follows:

As for the second vendor, we need to do exactly the same calculation:

Therefore, the better deal is the bag being sold by the first vendor