the perimeter of a rectangle is 18 centimeters. the length of the rectangle is 7 centimeters less than three times the width. find the dimensions