Find the perimeter and area of this polygon, made up of a right triangle on top of a square.