When finding the surface area of the rectangular pyramid what dimension will be used to find the height of the triangular sides

In order to find the height of the triangular sides of a rectangular pyramid, you will need to use the slant height of the pyramid. The slant height is the distance from the apex (top) of the pyramid to the midpoint of one of the sides of the base. It forms a right triangle with the height of the pyramid and half the length of one side of the base. You can use the Pythagorean theorem to find the height of the triangular sides by solving for the height using the formula:

h = sqrt(s^2 - (1/2)w^2)

Where:
h = height of the triangular sides
s = slant height of the pyramid
w = width of the base