What is the weighted average cost of capital (WACC) for a firm where debt is 40% of the firm, preferred stock is 10% of the firm, common stock is 50% of the firm, after tax cost of debt is 8%, cost of preferred stock is 12%, and cost of common stock is 18%?