Perimeter of Irregular Shapes

A neat trick often used is to "push out" the irregular corners to form a regular rectangle, as these questions demonstrates:

1986 AJHSME Problem 13

1992 AJHSME            Problem 22