Dozens of beachgoers helped save a pod of beached whales