A farmer counted 10 animals in a pen, consisting of only chickens and rabbits. He counted a total of 28 legs. How many rabbits were there?
2
3
4
5
6