Given:
Perimeter = 18 m
The formula for the perimeter of a rectangle is:

Where:
l = lenght
w = width
In this case, we have that:
l = 2w
Therefore, we substitute the values in the formula:

And solve for w:

For the length:

Answer:
The width is 3 m
The length is 6 m