The length of a rectangle is 5 meters less than 3 times the width. The perimeter is 46 meters. Find the width.