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

### Instruction:
 Lois ana vitabu 40. Anampa robo ya vitabu vyake mpwa wake. Kutoka kwa vitabu vilivyosalia, anatoa thuluthi ya vitabu vyake kwa maktaba. Kisha ananunua vitabu 3 kutoka duka la vitabu. Lois ana vitabu vingapi sasa?


### Response:
 Lois anampa mpwa wake vitabu 40 / 4 = <<40/4=10>>10
Kisha Lois anabakiwa na vitabu 40 - 10 = <<30=30>>30
Lois anatoa vitabu 30 / 3 = <<30/3=10>>10 kwa maktaba
Kisha Lois anabakiwa na vitabu 30 - 10 = <<30-10=20>>20
Baada ya kununua vitabu vipya, Lois ana vitabu 20 + 3 = <<20+3=23>>23