Cut both cakes open, making four 8-inch rounds. On top of one, place half the pineapple filling and top with a cake layer. Next add a layer of frosting, then a cake layer. Place remaining pineapple mixture on the cake and top with the last cake layer. Frost the sides and top of the cake. Sprinkle with coconut.