A rectangle has a width that is half its length. If the perimeter of the rectangle is 36 units, what is the length of the rectangle?
Recall the formula for the perimeter of a rectangle:
$$P = 2(L + W)$$
where $L$ is the length and $W$ is the width.