Nathaniel is building a rectangular shed. The length of the shed is 5 feet less than 3 times the width. The perimeter of the shed is 158 feet. What is the width of the shed?