The perimeter is the sum of all four sides, so you need to calculate 2 x length + 2 x height. The fact that the rectangle is at the bottom of a triangle is irrelevant - except that in specific diagrams, information may be provided that lets you calculate the length or the width of the triangle.