The perimeter of a rectangle is 24 in.and its length is 3times its width. What are the length and width of ThE rectangle?