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

### Instruction:
David is taking a data analytics course that lasts for 24 weeks. The course consists of 2 three-hour classes and 1 four-hour class each week. In addition, David must spend 4 hours each week working on small group homework assignments. How many hours will he spend on this course?

### Response:
 Kila wiki, David atatumia masaa 3 x 2 = <<3*2=6>>6 kwenye darasa la masaa matatu mara mbili.
Atatumia masaa 4 + masaa 6 = <<4+6=10>>10 kwenye darasa kila wiki.
Ongeza na masaa 4 ya kazi ya kikundi kidogo, 4 + 10 = <<4+10=14>>14 masaa kwa wiki.
Atatumia masaa 14 x wiki 24 = <<14*24=336>>336 kwenye kozi.