The length of a rectangle is three times its width. If the perimeter is at most 112 centimeters, what is the greatest possible value for the width?