I went to a party with some cats, spiders, birds and beatles. The cats and spiders together had 20 legs. The cats and birds together had 12 legs. The beatles and spiders together had 58 legs. There were 72 legs in the party. How many of each animal were there?