In a right triangle, one leg measures 9 units and the other leg measures 12 units. Calculate the area of this triangle using the formula:
$$A = \f\frac{1}{2} \times \text{base} \times \text{height}$$
Now, consider a rectangle that has the same area as this triangle but has a width of 6 units. What is the length of the rectangle?