A bakery bakes cake with the expectation that it will earn a profit of 40% by selling each cake at marked price. But during the delivery to showroom 16% of the cakes were completely damaged and hence could not be sold. 24% of the cakes were slightly damaged and hence could be sold at 80% of the cost price. The remaining 60%of the cakes were sold at marked price. What is the percentage profit in the whole consignment?