Find the volume of the composite solid. A composite shape formed by a triangular prism and a triangular pyramids lying one above the other. The measure of two legs of right triangular base of the prism is 12 centimeters and 9 centimeters and the height of the triangular prism is 10 centimeters. The base of the triangular pyramid is the same as the base of the prism and has a height of 7 centimeters.