A tree farmer estimates that if 80 apple trees are planted, the average yield will be 400 apples per tree. But because the size of the farm, for each additional tree planted the yield will decrease by 32 apples per tree. How many trees should be planted to maximize the total yield of apples? What is the maximum yield?