A window has the shape of a rectangle surmounted by an equilateral triangle. If the perimeter of the window is 12m, find the dimensions of the rectangle that will produce the largest area of the window.