A group of four people have to cross a bridge that will accommodate only two people at a time. It is night and there is one flashlight. Any party who crosses, either one or two people, must have the flashlight with it. (The flashlight must be walked back and forth; it cannot be thrown.)

Required:
Find a way for all four to get to the other side of the bridge in 17 minutes, given that person A takes 1 minute to cross the bridge, B takes 2 minutes, C takes 5 minutes, and D takes 10 minutes. When two people cross, they must go at the speed of the slower person