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 ?