Brad plans 27 roses and 36 daffodils. He plants an equal number of each type of flower in each row. What is the greatest possible number of roses in each row?