Mrs. Martin wants to place a ribbon around the outer edge of a rectangular mirror. The area of the mirror is 324 square inches. The width of the mirror is 12 inches. How many inches of ribbon does Mrs. Martin need?