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