Matthew's school choir is made up of 24 men and 36 women. Matthew, the choir director, wants to organize them into equal rows for a concert, where each row has the same number of members. Each row will consist of only a single gender (rows of men, and rows of women). To maximize the number of members in each row, how many rows should Matthew have?