sketch the right triangle with vertices (0,0) , (0,5) , and (12,0)

one corner of the rectangle lies on the line between (0,5) , and (12,0).

you need to find the equation of this line.

area of the rectangle will be A = xy , where y is the linear equation mentioned above.

find and maximize.