In this situation, If farmer Fred sells $45 for animals ($10 for pigs, $20 for cow, $15 for 3 chickens). He will pay total $2.5 for transport free, finally he earns $42.5. So as he has to pay $29.7 for transport fee, if he brings home $505.( 505 * 2.5 / 42.5 = 29.7)