The surface area will be the surface area of the rectangular prism, plus the surface area of the triangular prism, minus the area of the base of the triangular prism, so:
For the rectangular prism:
For the triangular prism:
The area of the base of the triangular prism is:
Therefore: