A rectangular rug has a perimeter of 146 feet. The width of the rug is 5 feet more than three times the length. Find the length and the width.