Hello, Mike!

Your wording is off . . . and your ratio is wrong . . .

A right triangle represents a lot: side a = 12m, side b = 4m.

Doug wants to put a rectangular fence in that uses side a and b,

and one corner touching side c of the triangle.

What are the dimensions that maximize the area of the **rectangle**? Code:

- *
: 4-y | *
: | *
: | *
4 *-----------*
: | x | *
: y | |y *
: | | *
- *-----------*-----------*
: x : 12-x :
: - - - - - 12- - - - - :

We have two similar right triangles.

. . Hence: .

The area of the rectangle is: .

Substitute [1]: .

. . Then: .

Substitute into [1]: .