<image>A river goes through a city and there are two islands. There are also six bridges how it is shown in the attached image. How many paths there are going out of a shore of the river (point $A$ ) and come back (to point $B$ ) after having spent one and only one time for each bridge?