The top left and right arms of a Wheatstone bridge have resistances P and Q. The bottom left and right arms have resistances R and S. When R = 12 ohm, the bridge is balanced. Now P and Q are interchanged and R = 27 ohm balances the bridge. The resistance S is