The length of a rectangle is 12 meters less than 6 times the width. If the perimeter of the rectangle is 256 meters, find the length and the width of the rectangle.