A cow and a horse are bought for Rs. 200000. The cow is sold at a profit of 20% and the horse at a loss of 10%. The overall gain is Rs. 4000. The cost price of the cow is?

a) Rs. 120000
b) Rs. 100000
c) Rs. 80000
d) Rs. 60000