Edith needs 65 yards of yarn to knit a baby hat and 580 yards of yarn to knit a baby blanket. A ball of yarn contains 420 feet of yarn. How many balls of yarn does Edith need to buy to make the baby hat and baby blanket?