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

### Instruction:
Keanu bought some fish from the store for his pets. He gave his cat half as many fish as he gave to his dog. If he gave his dog 40 fish, and each fish cost him $4, calculate the total amount of money he spent at the store to buy all the fish.

### Response:
 Paka alipokea nusu ya idadi ya samaki aliyompa mbwa, ambayo inamaanisha paka alipokea 1/2*40 = 1/2*40 = 20 samaki
Alinunua samaki 40 kwa ajili ya mbwa na 20 samaki kwa ajili ya paka, maana yake alinunua samaki 40+20 =<<40+20=60>>60 dukani.
Ikiwa kila samaki alimgharimu $4, gharama jumla ya samaki alizonunua dukani ni 60*$4 = $<<60*4=240>>240