If there are 45 animals in the farm. The ratio of goats: cows: ducks is 5:3:8. If there are 24 ducks, how many of the animals are cows? Pls answer

cows/ducks = 3/8

cows/24 = 3/8
cows = 3 * 24/8
= 9