We can use the Pythagorean theorem:

For right triangles, where 'a' and 'b' are the two legs and 'c' is the hypotenuse. Plug in what we know:

Simplify the exponents:

Add:

Take the square root of both sides:

This is the length of the hypotenuse.

The base and the height are the two legs, plug them in:

Multiply:

The perimeter of any shape is the sum of all side lengths:
