This question confuse me a bit out of all the questions im suppose to do, and hopefully someone can help me.

"A rectangle is inscribed in a right triangle with sides 6,8, and 10. Two sides of the rectangle lie along legs of teh triangle, and teh remaining vertex of the rectangle is on the hypotenuse of the triangle. What dimensions for the rectangle will maximize its area?"