(50) A farmer noticed that his chickens were loose and were running around with the cows in.the cow pen. He quickly counted 100 heads and 270 legs. How many chickens did he have and how many cows? ​