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

### Instruction:
Hannah's family has ten pigs on their farm. They also have three fewer than twice as many cows as pigs and six more goats than cows. How many animals do they have on their farm?

### Response:
 Mara mbili ya idadi ya nguruwe ni 10 * 2 = <<10*2=20>>20.
Ng'ombe wachache kuliko mara mbili ya idadi ya nguruwe ni 20 - 3 = <<20-3=17>>17 ng'ombe.
Mbuzi sita zaidi ya ng'ombe ni 17 + 6 = <<17+6=23>>23 mbuzi.
Kwenye shamba lao, familia ya Hannah ina jumla ya wanyama 10 + 17 + 23 = <<10+17+23=50>>50.