The given solid is composed of a rectangular prism and a rectangular pyramid.
The surface area of a prism is
The surface area of a rectangular pyramid is
But we'll not include the area of base A because it's already included in the surface area of the prism. p is the perimeter, and s is the slant height.
Then, we find the volumes. The volume of the prism is
The volume of the pyramid is
Then, the volume is