A pen contained chickens and pigs. There were 28 legs and 9 heads. How many chickens were in the pen?

I think the answers in 4. Is that right?

3 answers

Yes. That's right.
Yes you are correct 😽
How do you know though?