In a diary, there are 60 cows and buffalos. The number of cows is twice that of buffalos. Buffalo X ranked seventeenth in terms of milk delivered. If there are 9 cows ahead of buffalo. X, how many buffalos are after in rank in terms of milk delivered?
12
Cows = 40 and Buffalos = 20.