How do you find the perimeter of a 2D figure?