AB Corporation has 16% cost of equity, 35% tax rate, and debt-to-equity ratio of 30%. XY Corporation has 30% tax rate and debt-to-equity ratio of 40%. Both AB and XY are in the same business of selling automotive parts. If the riskless rate is 4% and the expected return on the market is 12%, find the cost of equity for XY.