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

### Instruction:
Max was doing homework in three different subjects. It took him 20 minutes to finish tasks from biology and two times more time to finish history. Geography took him the most time, three times more than history. How much time did Max spend on doing his homework?

### Response:
 Kwanza tafuta muda ambao Max alitumia kufanya historia: dakika 20 * 2 = <<20*2=40>>40 dakika
Kisha tafuta muda ambao Max alitumia kufanya jiografia: dakika 40 * 3 = <<40*3=120>>120 dakika
Kisha ongeza muda uliotumika kufanya kila somo ili kupata jumla ya muda: dakika 120 + 40 + 20 = <<120+40+20=180>>180 dakika