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

### Instruction:
Keenan needs to write an essay that is 1200 words. Her essay is due at midnight. She writes 400 words per hour for the first two hours. After that, she writes 200 words per hour. How many hours before the deadline does she need to start to finish on time?

### Response:
 Katika masaa mawili ya kwanza, Keenan anaandika maneno 800 kwa sababu 400*2=<<400*2=800>>800.
Baada ya hapo, bado anahitaji kuandika maneno 400 kwa sababu 1200-800= <<1200-800=400>>400.
Kwa kuwa anaandika maneno 200 kwa saa, atachukua masaa 2 kuandika maneno 400 ya mwisho kwa sababu 400/200=<<2=2>>2.
Hivyo, anapaswa kuanza masaa 4 kabla ya muda wa mwisho kwa sababu 2+2=<<4=4>>4.