A cake is a rectangular prism with height 3 inches and bases 8 inches by 10 inches. Samantha wants to apply frosting to the sides and the top of the cake. What is the surface area of the part of the cake that will have frosting?