The length of a rectangle is 1 yd than three times the width, and the area of the rectangle is 21 yd^2. Find the dimensions of the rectangle.