Below is an instruction that describes a task. Write a response that appropriately completes the request in Swahili. Please answer in Swahili.

### Instruction:
On his farm, Mr. Mathews has goats and sheep in the ratio of 5:7. He decides to sell half of the goats at $40 each and 2/3 of the sheep at $30 each. How much money does he make from the sale of the animals if the total number of sheep and goats on the farm is 360?

### Response:
 Uwiano wa jumla wa mbuzi na kondoo kwenye shamba ni 5+7 = <<5+7=12>>12
Kiwango kinachowakilisha mbuzi kutoka kwenye uwiano wa jumla ni 5/12, na kwa kuwa kuna mbuzi na kondoo 360 kwenye shamba, idadi ya mbuzi ni 5/12*360= <<5/12*360=150>>150
Idadi ya kondoo kwenye shamba la Bwana Mathews ni 360-150 = <<360-150=210>>210.
Bwana Mathews aliuza 1/2*150 = <<1/2*150=75>>75 mbuzi.
Kama kila mbuzi aliuza kwa $40, jumla ya pesa Bwana Mathews aliyopata kutokana na mauzo ya mbuzi ni 75*$40 = $<<75*40=3000>>3000
Pia aliuza 2/3*210 = <<2/3*210=140>>140 ya kondoo wote kwenye shamba lake.
Mapato kutokana na mauzo ya kondoo ni 140*$30=$<<140*30=4200>>4200
Kutokana na mauzo ya mbuzi na kondoo, Bwana Mathews alipata $4200+$3000 = $8600