A gardener sets 180 plants In a rows. Each row contains the same number of plants. If there are 40 more plants in each row, the gardener would need 6 fewer rows. How many rows are there?