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

### Instruction:
Carly is a pet groomer. Today, her task was trimming the four nails on dogs’ paws. She trimmed 164 nails, but three of the dogs had only three legs. How many dogs did Carly work on?

### Response:
 Acha N iwe idadi ya mbwa wenye miguu minne Carly aliyefanyia kazi.
Mbwa wote wenye miguu minne walikuwa na miguu 4N.
Mbwa wote wenye miguu mitatu walikuwa na miguu 3 * 3 = <<3*3=9>>9.
Alizikata kucha 164 / 4 = <<164/4=41>>41.
Aliwafanyia kazi miguu 4N + 9 = 41.
Hivyo, alifanyia kazi miguu 4N = 32 kwenye mbwa wenye miguu minne.
Aliwafanyia kazi N = 32 / 4 = <<32/4=8>>8 mbwa wenye miguu minne.
Hivyo, Carly alifanyia kazi mbwa 8 + 3 = <<8+3=11>>11.