In all farmer brown has 12 chickens and pigs in all the animals have 28 legs how many chickens and pig dose farmer brown have?

chickens chickens