Aphid Corp. will finance its next major expansion with 20% debt, 30% preferred stock, and 50% retained earnings. Aphid's after-tax cost of debt is 5.1%, cost of preferred stock is 7.1%, and cost of retained earnings is 12.7%. What is the corporations weighted average cost of capital?