The length of a rectangle is three times its width. If the perimeter of the rectangle is 72 yd, find its length and width.