Find the volume of the composite solid. A composite shape formed by a rectangular prism and a rectangular pyramid. The rectangular prism has a length of 6 inches, width 4 inches, and height 2 inches. The base of the triangular pyramid is the same as the base of the rectangular pyramid and has a height of 3 inches.