A wedding cake has two layers as shown. Each layer is in the shape of a cube. The bottom of the cube and the area where the two cakes meet are not frosted. How much of the cake is frosted?