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

### 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:
Each week, David will spend 3 hours + 3 hours + 4 hours = <<3+3+4=10>>10 hours in class.
Add to that his 4 hours of small group work, 4 + 10 = <<4+10=14>>14 hours a week.
Finally, multiply David's weekly commitment by the number of weeks in the semester to find the total number of hours he will spend on the course: 14 hours/week x 24 weeks = <<14*24=336>>336 hours.
#### 336