Taking l and w as the length and the width of the rectangle respectively, we have that:

We know that the area of a rectangle is:

Replace A for the given value of the area and w for the expression stated:

Solve the operations and write the equation as a quadratic expression:

Solve the quadratic equation using factorization:

For this context, the value of l that we can use is 9. It means that the length of the triangle is 9m.
Use this value and the first expression to find w:

The width of the triangle is 6m.