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