The length of a rectangle is 4 meters less than three times its width. If the perimeter of the rectangle is 48 meters, then what is the value of the length (in meters)?