If the length of a rectangular field is twice the width and the perimeter is 24. Write an equation that an be used to solve for the dimensions length and width. Solve the equation.