The perimeter of a rectangle is 50 inches. Its length is 3 times its width. Write and solve an equation to determine the length and width of the rectangle