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

### Instruction:
 Max alikuwa akifanya kazi za nyumbani katika masomo matatu tofauti. Ilimgia dakika 20 kumaliza kazi za biolojia na mara mbili zaidi ya wakati huo kumaliza kazi za historia. Jiografia ilimchukua muda mrefu zaidi, mara tatu zaidi ya historia. Max alitumia muda gani kufanya kazi za nyumbani?


### 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