A farmer had d animals, all of which the farmer bought for the same price. The farmer decided to sell the animals. 16 of the animals were sold at a profit of 10% each while the rest were sold at a loss of 20% each. Overall, the farmer made neither a profit nor a loss. Which of the following is equal to d? Choose the correct choice from the following.
A) 20
B) 24
C) 28
D) 32
E) 36
Let P be the price the farmer paid for each animal.   The total profit on the 16 animals is 16*0.1*P.   The total loss on the other (d-16) animals is (d-16)*0.2*P.   (d-16)*0.2*P = 16*0.1*P   0.2*d = 1.6 + 3.2   d = 24   The answer is 24.
<result>B</result>
A farmer had d animals, all of which the farmer bought for the same price. The farmer decided to sell the animals. 16 of the animals were sold at a profit of 10% each while the rest were sold at a loss of 20% each. Overall, the farmer made neither a profit nor a loss. Which of the following is equal to d?