The perimeter of a rectangle is 176 m. The length is 4 m less than three times the width. Find the dimensions of the rectangle.