Calculate the resistance between the terminals A and B of the network shown in figure.