1 peasant changed rabbits to hens and 2 rabbits were equal to 3 hens, each hen produced the eggs that

1 peasant changed rabbits to hens and 2 rabbits were equal to 3 hens, each hen produced the eggs that were equal to ⅓ of the total number of hens, the peasant sold the eggs, 9 eggs will cost as many pennies as each hen that produced the eggs and totally he got 72 pennies so how many hens and how many rabbits he had?