A rhombus is inscribed in a rectangle that is w meters wide with a perimeter of 24 m. Each vertex of the rhombus is a midpoint of a side of the rectangle. Express the area of the rhombus as a function of the​ rectangle's width.