Use Pythagorean theorem to find area and perimeter