In a flower shop, if 5929 plants are to be set in a garden in such a way that each row contains as many plants as the number of rows. Find the number of rows and the number of plants in each row.