Person A can walk across in 1 minute. Person B takes 2 minutes; person C -- 5 minutes, and finally person D needs a full 10 minutes to cross. Naturally, if two people are crossing the bridge, they move with the speed of the slower person.
What is the shortest amount of time it will take for all four to get to the other side?