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

### Instruction:
A woodworker is crafting enough furniture legs for their projects. They have made a total of 40 furniture legs so far, and this is the exact amount they needed for everything they’re building. If the woodworker is using these legs for their tables and chairs and they have built 6 chairs, how many tables have they made?

### Response:
 Viti vinahitaji miguu 6 * 4 = <<6*4=24>>24 ya samani.
Hii inamaanisha wanatumia jumla ya miguu 40 - 24 ya viti = <<40-24=16>>16 kwa meza.
Hivyo, wametengeneza meza 16 miguu / 4 miguu kwa meza = <<16/4=4>>4.