Bob keeps his cows and ducks in a barn. There are 13 animals in the barn and all together they have 34 legs. How many cows are there and how many ducks