There are a certain number of hens and rabbits in a room. The number of feet of the hens exceeds the number of feet of the rabbits by 12, while the number of heads of the hens exceeds the number of the heads of the rabbits by 28. Then the number of hens and rabbits, respectively, in the room are: