We determine that by calculating the cost of buying one Oz for each case, that is:


Here p1 and p2 represent the cost of 1 Oz for the 12 Oz and 8 Oz scenarios given, from this we have that is better to buy a 12 Oz box of cereal for $3 since we would be buying 1 Oz for $0.25.