In a park, the ratio of rabbits in burrows to rabbits outside was 3 : 2. By dusk, 21 rabbits had left the burrows to go outside, and the ratio of rabbits in burrows to rabbits outside became 4 : 5. How many rabbits were in burrows and how many rabbits were outside by dusk?