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

### Instruction:
Anthony and his friend Leonel read about the importance of keeping pets at home and decided to start adopting cats and dogs from the local rescue center. Anthony has 12 cats and dogs, 2/3 of which are cats. Leonel has half times as many cats as Anthony and seven more dogs than Anthony. How many animals in total do the two have?

### Response:
 Ikiwa Anthony ana wanyama 12, idadi ya paka ni 2/3 * 12 = <<12*2/3=8>>8 paka.
Idadi ya mbwa ambao Anthony ana ni 12 - 8 = <<12-8=4>>4 mbwa.
Leonel ana nusu ya idadi ya paka kama ya Anthony, ambayo inamaanisha Leonel ana paka 8 / 2 = <<8/2=4>>4.
Idadi ya mbwa ambao Leonel ana ni 4 mbwa + 7 mbwa = <<4+7=11>>11 mbwa.
Jumla, wawili hao wana mbwa 11 kwa Leonel + paka 4 kwa Leonel + mbwa 4 kwa Anthony + paka 8 kwa Anthony = 27 wanyama.