A building with a rectangular base is to be constructed on a lot in a form of a right triangle with legs 18m and 24m. if the building has one side along the hypotenuse of the triangle, find the dimensions of the base of the building for maximum floor area.