The perimeter is the sum of the side lengths:
The right triangle has base and height . Its area is
The area of the square is . The total area is .