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

### Instruction:
John adopts a dog from a shelter.  The dog ends up having health problems and this requires 3 vet appointments,  which cost $400 each.  After the first appointment, John paid $100 for pet insurance that covers 80% of the subsequent visits.  How much did he pay in total?

### Response:
 Kulikuwa na ziara 2 zaidi
Hivyo, ziligharimu $400 * 2 = $800
Bima ilifunika $800 * 0.8 = $640
Hivyo, alilipa $800 - $640 = $160
Hivyo, jumla alilipa $400 + $160 + $100 = $660