The ratio of sheep to goats to cows is 3:5:2.There are 36 cows. What is the total number of goats and sheep?