how is the formula for the perimeter of a rectangle an application of the distributive property