It costs $24 to paint a cube, the cost being proportional to the surface area. Before painting, it was cut in two pieces by a plane. What is maximum possible cost to paint these two pieces?