You are right: 17 minutes. 75 percent of our readers got the right answer.
The strategy works as follows:
Mary and Joseph cross the bridge (2 minutes)
Mary goes back (1 minute)
Andrea and Benedict cross the bridge (10 minutes)
Joseph goes back (2 minutes)
Mary and Joseph cross the bridge (2 minuts)