A window is in the form of a rectangle surmounted by a semi-circle opening. The perimeter of the window is 10 m. Find the dimensions of the window to admit maximum light through the whole opening.