Find the area of the largest rectangle that can be inscribed in a right triangle with legs of lengths 4 cm and 6 cm if two sides of the rectangle lie along the legs.