The weight of four cookies is 300 grams and the weight of six pastries is 420 grams. Which one is heavier, a cookie or a pastry?