Each of the 8 dealers bought the same number of animals and paid at the rate of Rupees 17 for each cow, Rupees 2 for each sheep and Rupees 2 for each pig. My friend received from the dealer in total Rupees 285.

How many animals in all did he have and how many of each kind ?

(Given: 1 Rupee = 100 Paise)