The 10 islands are connected by12 bridges (see diagram). All bridges are open for traffic. What is the minimum number of bridges that need to be closed off, so that the traffic between A and B comes to a halt?