Answer:
see the explanation
Step-by-step explanation:
we know that
The surface area of a prism is given by the formula

where
B is the area of the base
P is the perimeter of the base
H is the height of the prism
For both prism the formula is the same
How is it different?
Rectangular prism
The area of the base is given by the formula
-----> is the area of rectangle
where
L is the length and W is the width of rectangle
The perimeter of the base is given by
---> is the perimeter of rectangle
The height H is the same in both cases
Triangular prism
The area of the base is given by the formula
-----> is the area of the triangular base
where
b is the base of triangle and h is the height of triangle
The perimeter of the base is given by
---> is the perimeter of triangle
where
a, b and c are the length sides of triangle
The height H is the same in both cases