I have solved this my making the independent variable y, the height of the rectangle. I drew a line from the top point of the triangle to the side opposite, in the rectangle somewhere. I found the minimum area of the two inscribed triangles on the left which gives the maximum area of the rectangle on the left. Here y=h/2 and finished with some geometry in writing to explain that the four inscribed triangles are half of the main triangles area.