The perimeter of a rectangle is forty inches. The length is
two inches more than three times the width. Find the dimensions of
the rectangle.