Five resistors, each of 3 ohm, are connected as shown in figure. Calculate the resistance (a) between the points P and Q, and (b) between the points X and Y.