Due to carpal tunnel syndrome, Barbara can only type 212 - 40= <<212-40=172>>172 words per minute.
So, she will be able to finish typing the document in 3440/172 = <<3440/172=20>>20 minutes.
#### 20