Royal Petroleum Co. can buy a piece of equipment that can be financed with debt at a cost of 6 percent (after-tax) and common equity at a cost of 18 percent. Assume debt and common equity each represent 50 percent of the firm's capital structure. What is the weighted average cost of capital?