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