A farmer counts 40 animals in a barn, consisting only of chickens and cows. If there are a total of 120 legs among these animals, how many cows are in the barn?
15
18
20
22
25